Closed Romitou closed 2 years ago
For example, using the code below, the ItemType#isTypeOf method does not work as expected, with for example nether warts:
ItemType#isTypeOf
on click on nether wart: broadcast "test"
Related code: https://github.com/Matocolotoe/Skript-1.8/blob/master/src/main/java/ch/njol/skript/events/EvtClick.java#L197 The ItemStack of o equals ItemStack{NETHER_WARTS x 1} while the ItemStack of block equals ItemStack{NETHER_STALK x 1}, which means that the event does not work.
o
ItemStack{NETHER_WARTS x 1}
block
ItemStack{NETHER_STALK x 1}
I think this might help https://github.com/SkriptLang/Skript/pull/4162 :+1:
The issue doesn't occur on 1.9+ with official Skript builds, with or without this pull request, so it's only related to 1.8 I guess.
For example, using the code below, the
ItemType#isTypeOf
method does not work as expected, with for example nether warts:Related code: https://github.com/Matocolotoe/Skript-1.8/blob/master/src/main/java/ch/njol/skript/events/EvtClick.java#L197 The ItemStack of
o
equalsItemStack{NETHER_WARTS x 1}
while the ItemStack ofblock
equalsItemStack{NETHER_STALK x 1}
, which means that the event does not work.