New WG Flag expressions (SkRambled expressions are somewhat broken)...

Register event-entity on Elytra Glide event
Change Elytra glide state to accept entities
Fixed "add x nbt of %slot%"
Fix an NPE in the NBTOf expression
This commit is contained in:
TheBukor
2016-03-13 22:26:43 -03:00
parent 3b2a9ca988
commit 24c07ad0d8
8 changed files with 296 additions and 39 deletions

View File

@@ -423,7 +423,7 @@ public class NMS_v1_9_R1 implements NMSInterface {
@Override
public NBTTagCompound getItemNBT(ItemStack itemStack) {
if (itemStack.getType() == Material.AIR)
if (itemStack == null || itemStack.getType() == Material.AIR)
return null;
NBTTagCompound itemNBT = CraftItemStack.asNMSCopy(itemStack).getTag();
if (String.valueOf(itemNBT).equals("{}"))