TriggerReactor

TriggerReactor

24.6k Downloads

Possible bug in script interpreter

wysohn opened this issue ยท 1 comments

commented
msg = "i/type/amount/durability/lore/enchant"
stri = Integer.toString(i)
msg = msg.replace("durability", durability)
msg = msg.replace("type", type)
msg = msg.replace("i", stri)
msg = msg.replace("amount", amount)
IF enchants != null
msg = msg.replace("enchant", msssg)
ELSE
msg = msg.replace("enchant", "null") // here
ENDIF
IF lore != null
msg = msg.replace("lore", mssg)
ELSE
msg = msg.replace("lore", "null")
ENDIF

the String "null" might somehow be treated as a real null value.

commented

The test code is incomplete, so it's hard to test it.

Close it for now