WorldEdit

WorldEdit

43M Downloads

Server error - PneumaticCraft interaction

LadyCailinBot opened this issue ยท 1 comments

commented

WORLDEDIT-3369 - Reported by dalgrim

I get this error when using a drone to plant crops using the "right click" puzzle piece.

SEVERE: [WorldEdit] Could not dispatch event: com.sk89q.worldedit.event.platform.PlayerInputEvent@24921a6 to handler EventHandler{priority=NORMAL}
java.lang.reflect.InvocationTargetException
at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:75)
at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:187)
at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:173)
at com.sk89q.worldedit.WorldEdit.handleRightClick(WorldEdit.java:664)
at com.sk89q.worldedit.forge.ForgeWorldEdit.onPlayerInteract(ForgeWorldEdit.java:178)
at cpw.mods.fml.common.eventhandler.ASMEventHandler_775_ForgeWorldEdit_onPlayerInteract_PlayerInteractEvent.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138)
at net.minecraftforge.event.ForgeEventFactory.onPlayerInteract(ForgeEventFactory.java:100)
at pneumaticCraft.common.ai.DroneAIBlockInteract.rightClick(DroneAIBlockInteract.java:96)
at pneumaticCraft.common.ai.DroneAIBlockInteract.doBlockInteraction(DroneAIBlockInteract.java:41)
at pneumaticCraft.common.ai.DroneAIBlockInteraction.func_75253_b(DroneAIBlockInteraction.java:187)
at pneumaticCraft.common.ai.DroneAIManager.onUpdateTasks(DroneAIManager.java:302)
at pneumaticCraft.common.entity.living.EntityDrone.func_70071_h_(EntityDrone.java:315)
at net.minecraft.world.World.func_72866_a(World.java:2070)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:648)
at net.minecraft.world.World.func_72870_g(World.java:2034)
at net.minecraft.world.World.func_72939_s(World.java:1887)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sk89q.worldedit.util.eventbus.MethodEventHandler.dispatch(MethodEventHandler.java:58)
at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73)
... 23 more
Caused by: java.lang.NullPointerException

The drone is only carrying plants(in my case netherwart). Why is WE intercepting right clicks if it's not a defined brush? Or perhaps that is the problem is it is checking to see what is held to see if it's a brush/woodaxe and the drone can't respond because it doesn't have an inv slot?

here is the pastebin link to the program I used in the pneumaticcraft programer:
http://pastebin.com/qtLHcbQX
I have edited the program to take the conditional and right click action out of the flow so that the server wouldn't have the error... I did leave in the puzzle pieces though so you can see the error.

Server is a DW20 1.7.10 running recommended version (1.7.0) with only Worldedit added to the server.

commented

Comment by wizjany

I need to see everything after the last line: Caused by: java.lang.NullPointerException
That's the important part of the error. Check the actual log file (instead of the console) and if it's still not there, start the server with -XX:-OmitStackTraceInFastThrow as a java arg