mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 09:09:08 +00:00
Fix Scripted Items re-evaluating Scripts
This commit is contained in:
1 parent
8a270b1548
commit
4202cb7271
2 files changed
+56
-29
No files matched your search
@@ -120,6 +120,9 @@ public class PacketUtil {
|
||||
}
|
||||
|
||||
private static boolean isValidItemForType(ItemStack item, EnumItemPacketType type) {
|
||||
if(item == null || item.getItem() == null)
|
||||
return false;
|
||||
|
||||
switch (type) {
|
||||
case WAND:
|
||||
return item.getItem() == CustomItems.wand;
|
||||
|
||||
Reference in new issue
Block a user