JuliaBerry / PiCraft.jl

Manipulate Minecraft on the Raspberry Pi from Julia
https://juliaberry.github.io/PiCraft.jl/
Other
38 stars 11 forks source link

GSoC: Fix setBlock() #7

Closed Ellipse0934 closed 6 years ago

Ellipse0934 commented 6 years ago

To spawn a block of white wool a user might enter setBlock(0,0,0, PiCraft.Block(35)) or setBlock(0,0,0, PiCraft.Block(35, 0)) To get red wool currently one needs to do ->setBlock(0,0,0, PiCraft.Block(35, 14), 14) This patch allows user to do either setBlock(0,0,0, PiCraft.Block(35, 14)) or setBlock(0,0,0, PiCraft.Block(35), 14)

aviks commented 6 years ago

Thanks!