GnaspGames / Smelt

A CLI tool for Minecraft map makers
http://smelt.gnasp.com
MIT License
19 stars 4 forks source link

getPreviousCommandBlock() gives wrong type if its the first command block in "impulse-chain" or "repeating-chain" #80

Open byAdam opened 8 years ago

byAdam commented 8 years ago

Take this command for example:

#example
>{"type":"repeating-chain"}
/say test
!get_type

if !get_type has the line 'smelt.getPreviousCommandBlock().type', it gives me 'chain' rather that 'repeating'

GnaspGames commented 8 years ago

Thanks for the report, I'll have a look into it.