Pickup possibly broken?
haveric opened this issue ยท 1 comments
Quote from Zilacon
"15:45:37 [SEVERE] Could not pass event PlayerPickupItemEvent to StackableItems v0.9.0.1
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_4_6.EntityItem.c_(EntityItem.java:229)
at net.minecraft.server.v1_4_6.EntityHuman.r(EntityHuman.java:346)
at net.minecraft.server.v1_4_6.EntityHuman.c(EntityHuman.java:338)
at net.minecraft.server.v1_4_6.EntityLiving.j_(EntityLiving.java:523)
at net.minecraft.server.v1_4_6.EntityHuman.j_(EntityHuman.java:154)
at net.minecraft.server.v1_4_6.EntityPlayer.g(EntityPlayer.java:194)
at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:352)
at net.minecraft.server.v1_4_6.Packet10Flying.handle(SourceFile:136)
at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112)
at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:585)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:481)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:416)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NullPointerException: null key
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:139)
at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:178)
at org.bukkit.craftbukkit.v1_4_6.inventory.CraftItemStack.getEnchantments(CraftItemStack.java:273)
at org.bukkit.craftbukkit.v1_4_6.inventory.CraftItemStack.getEnchantments(CraftItemStack.java:258)
at haveric.stackableItems.ItemUtil.isSameItem(ItemUtil.java:275)
at haveric.stackableItems.ItemUtil.isSameItem(ItemUtil.java:265)
at haveric.stackableItems.InventoryUtil.getFreeSpaces(InventoryUtil.java:49)
at haveric.stackableItems.InventoryUtil.getFreeSpaces(InventoryUtil.java:30)
at haveric.stackableItems.SIPlayerListener.playerPicksUpItem(SIPlayerListener.java:1187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 20 more"
Quote from confuserr
"Getting item dupes with this in 1.4.6, only appears to occur for items i'm doing stuff with in the PlayerPickupItemEvent. Previous craftbukkit had no such problem. For example, I run a delayed (by event.getItem().getPickupDelay() + 5) sync task when a player picks up wheat to turn it automatically into bread if they have 3 of them. Throwing the wheat from their inventory and picking it up again results in 2 wheats, rather than one. Removing this plugin gets rid of the duping problem."