I've tried
if (event.getHarvester() == null) {
return;
}
but it still returns the error.
EDIT: Moved it to before my initial IF statement and it appears to be working, thanks for the support, very much appreciated.
I'm using the HarvestDropsEvent to change the drops of cobblestone and gravel when using any of my mods hammers. Strangely, the game crashes when joining a world with "NullPointerException", heres the full report: https://pastebin.com/Hq6HSZG4
Heres my EventHandler class: https://pastebin.com/pLj27sKj
Thanks!
I followed Shadowfacts tutorial to create a mod in 1.12.2 but my item is not textured in game. I believe it is seeing the model json as previously it looked like a 3D block with the unlocalized name on the side, but now it looks like a 2D item with just the purple and black tiles.
My project setup looks like this:
WaterBlockUtils.java (main class)
ModItems.java
ItemBase.java
CommonProxy.java
ClientProxy.java
wooden_hammer.json
Hi there,
Me and a friend have been experiencing this issue for a while now and cannot find a solution that fixes it. We are trying to connect to a server running on a virtual server that I am hosting. It is running a selection of mods that I have compiled into a private modpack for us to play. We are now stuck with the issue of trying to connect to the server. I have ensured that the server is running all of the correct mods and such but when we try to join we get the message "Timed Out" and then in the console it says:
Thanks for all the help!
I see. So I commented out these lines:
//GameRegistry.register(townCentre);
//GameRegistry.register(house);
But the game crashes still. (with the same error)
So you are saying that there is 2 of these:
GameRegistry.register(townCentre); //COUGH #1
ItemBlock itemtowncentre = new ItemBlock(townCentre);
itemtowncentre.setRegistryName(townCentre.getRegistryName());
GameRegistry.register(itemtowncentre);
GameRegistry.register(townCentre); //COUGH #2
ItemBlock itemtowncentre = new ItemBlock(house);
itemtowncentre.setRegistryName(house.getRegistryName());
GameRegistry.register(itemtowncentre);
Yet I only see one.
I am getting a crash report from my own mod in my dev environment. It's saying something about the fact that I have registered the same block twice, but I can clearly see that it is two different blocks in my code.
Github project: https://github.com/xXJamieXx/myTweaks
Crash report: https://pastebin.com/ayq8Aifp