2.0 - projectile issues
Zarius opened this issue ยท 5 comments
Just doesn't work (no error):
tool: PROJECTILE
tool: PROJECTILE_ARROW
Does work:
tool: PROJECTILE_ARROW@XARQN
NPE error:
tool: PROJECTILE_ARROW@PLAYER
21:49:10 [WARNING] Unexpected exception while parsing console command
org.bukkit.command.CommandException: Unhandled exception executing command 'odr' in plugin OtherDrops v2.0-beta5
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:347)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:343)
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
Caused by: java.lang.NullPointerException
at com.gmail.zariust.otherdrops.subject.PlayerSubject.hashCode(PlayerSubject.java:68)
at com.gmail.zariust.otherdrops.subject.ProjectileAgent.hashCode(ProjectileAgent.java:102)
at java.util.HashMap.put(HashMap.java:372)
at com.gmail.zariust.otherdrops.OtherDropsConfig.parseAgentFrom(OtherDropsConfig.java:621)
at com.gmail.zariust.otherdrops.OtherDropsConfig.loadConditions(OtherDropsConfig.java:309)
at com.gmail.zariust.otherdrops.OtherDropsConfig.loadBlockDrops(OtherDropsConfig.java:295)
at com.gmail.zariust.otherdrops.OtherDropsConfig.loadDropsFile(OtherDropsConfig.java:276)
at com.gmail.zariust.otherdrops.OtherDropsConfig.loadConfig(OtherDropsConfig.java:186)
at com.gmail.zariust.otherdrops.OtherDropsConfig.load(OtherDropsConfig.java:122)
at com.gmail.zariust.otherdrops.OtherDropsCommand.onCommand(OtherDropsCommand.java:72)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
I'm not as familiar with the projectile code (and that hashcode bit) - mind taking a look at it Celtic?
Actually, you may have. I fixed up some projectile code ( 520bc80 ) relating to PROJECTILE_ANY and then tested the whole lot so not quite sure when it was fixed. Although I did just recently fix PROJECTILE to mean PROJECTILE_ANY ( 54232f2 ).
For reference purposes I should note that the format is now PROJECTILE_ARROW@PLAYER;XARQN.