Closed RoboMWM closed 7 years ago
Visually, I do see the items for a fraction of a second when I run /scs reload. So I would think it is dropping the item... not sure why it's null.
omg... what has changed this time?
item.getItemStack().getItemMeta().setDisplayName(shop.getId().toString());
Seems like there is no guarantee for an ItemMeta?
Unless those other values are null, idk :(
ItemMeta can be null if the following path is executed: if (!hasItemMeta(item)) return CraftItemFactory.instance().getItemMeta(getType(item)) --> getItemMeta(notNull) --> getItemMeta(notNull, null) which is null on AIR or several other conditions...
Well, that fix will be up in a few minutes then
ahahahahahahaha. nope. While there is no exception anymore. The item just blinks up for a split second, while it works fine on craftbukkit 1.10.2... god damn it, why is there no official API
Fix is up
So, this is spamming onEnable (and on /scs reload), presumably for each shop that exists. Shops do not contain an item above them, but they do seem to function.