MCPC+ support (modded blocks)
Opened this issue ยท 2 comments
When using /b bb and modded block are in the way, voxelsniper does not wor and throw NPE.
Will be possible add support for modded blocks (due forge can be id 0-4096)
NPE:
2013-06-28 13:07:05 [INFO] akinomka issued server command: /b bb
2013-06-28 13:07:09 [WARNING] [VoxelSniper] Exception while sniping: (akinomka Blend Ball)
2013-06-28 13:07:09 [SEVERE] java.lang.NullPointerException
2013-06-28 13:07:09 [SEVERE] at java.io.Writer.write(Writer.java:157)
2013-06-28 13:07:09 [SEVERE] at fr.areku.tlmd.MasterFilter.writelog(MasterFilter.java:110)
2013-06-28 13:07:09 [SEVERE] at fr.areku.tlmd.MasterFilter.isLoggable(MasterFilter.java:100)
2013-06-28 13:07:09 [SEVERE] at java.util.logging.Logger.log(Logger.java:512)
2013-06-28 13:07:09 [SEVERE] at java.util.logging.Logger.doLog(Logger.java:543)
2013-06-28 13:07:09 [SEVERE] at java.util.logging.Logger.log(Logger.java:632)
2013-06-28 13:07:09 [SEVERE] at com.thevoxelbox.voxelsniper.Sniper.snipe(Sniper.java:1122)
2013-06-28 13:07:09 [SEVERE] at com.thevoxelbox.voxelsniper.VoxelSniperListener.onPlayerInteract(VoxelSniperListener.java:883)
2013-06-28 13:07:09 [SEVERE] at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
2013-06-28 13:07:09 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-06-28 13:07:09 [SEVERE] at java.lang.reflect.Method.invoke(Method.java:601)
2013-06-28 13:07:09 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:361)
2013-06-28 13:07:09 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2013-06-28 13:07:09 [SEVERE] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:31)
2013-06-28 13:07:09 [SEVERE] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
2013-06-28 13:07:09 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
2013-06-28 13:07:09 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:189)
2013-06-28 13:07:09 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:159)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.network.NetServerHandler.func_72472_a(NetServerHandler.java:843)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.network.packet.Packet15Place.func_73279_a(SourceFile:58)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:442)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:222)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:53)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:30)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:852)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:320)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:721)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:605)
2013-06-28 13:07:09 [SEVERE] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
2013-06-28 13:07:09 [SEVERE] null
java.lang.ArrayIndexOutOfBoundsException: 2762
at com.thevoxelbox.voxelsniper.brush.BlendBallBrush.blend(BlendBallBrush.java:76)
at com.thevoxelbox.voxelsniper.brush.BlendBrushBase.arrow(BlendBrushBase.java:36)
at com.thevoxelbox.voxelsniper.brush.Brush.perform(Brush.java:114)
at com.thevoxelbox.voxelsniper.Sniper.snipe(Sniper.java:1109)
at com.thevoxelbox.voxelsniper.VoxelSniperListener.onPlayerInteract(VoxelSniperListener.java:883)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:361)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:31)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:189)
at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:159)
at net.minecraft.network.NetServerHandler.func_72472_a(NetServerHandler.java:843)
at net.minecraft.network.packet.Packet15Place.func_73279_a(SourceFile:58)
at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:442)
at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:222)
at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:53)
at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:30)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:852)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:320)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:721)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:605)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
2013-06-28 13:15:07 [SEVERE] null
java.lang.ArrayIndexOutOfBoundsException
2013-06-28 13:15:07 [WARNING] [VoxelSniper] Exception while sniping: (akinomka Blend Ball)
2013-06-28 13:15:07 [SEVERE] java.lang.NullPointerException
2013-06-28 13:15:07 [SEVERE] null
java.lang.ArrayIndexOutOfBoundsException