SpongeForge + Pixelmon

Hi guys,

Having a weird kick out here since i’ve introduce sponge into the server setup, now the pixelmon item Mecanical Anvil cannot be placed anymore kicking out client instantly with an exeption,

Not to sure if you guys would need more detail or file logs, dont hesitate !

Thanks in advance !

Yes always give logs where available, we won’t be able to give much help without.

Here we go :slight_smile:

Time: 16-10-03 19:11
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213)
at org.spongepowered.common.block.SpongeBlockSnapshotBuilder.worldId(SpongeBlockSnapshotBuilder.java:86)
at net.minecraftforge.common.util.BlockSnapshot.createSpongeBlockSnapshot(BlockSnapshot.java:65)
at net.minecraftforge.event.world.BlockEvent$PlaceEvent.handler$onConstructed$0(BlockEvent.java:74)
at net.minecraftforge.event.world.BlockEvent$PlaceEvent.(BlockEvent.java:186)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlaceHeight(PixelmonItemBlock.java:260)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlaceLength(PixelmonItemBlock.java:227)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlace(PixelmonItemBlock.java:184)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.func_179222_a(PixelmonItemBlock.java:152)
at net.minecraft.client.multiplayer.PlayerControllerMP.func_187099_a(PlayerControllerMP.java:418)
at PlayerControllerOF.func_187099_a(PlayerControllerOF.java:88)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)
at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:2184)
at net.minecraft.client.Minecraft.func_184118_az(Minecraft.java:1961)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1749)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

A detailed walkthrough of the error, its code path and all known details is as follows:

– Head –
Thread: Client thread
Stacktrace:
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213)
at org.spongepowered.common.block.SpongeBlockSnapshotBuilder.worldId(SpongeBlockSnapshotBuilder.java:86)
at net.minecraftforge.common.util.BlockSnapshot.createSpongeBlockSnapshot(BlockSnapshot.java:65)
at net.minecraftforge.event.world.BlockEvent$PlaceEvent.handler$onConstructed$0(BlockEvent.java:74)
at net.minecraftforge.event.world.BlockEvent$PlaceEvent.(BlockEvent.java:186)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlaceHeight(PixelmonItemBlock.java:260)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlaceLength(PixelmonItemBlock.java:227)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlace(PixelmonItemBlock.java:184)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.func_179222_a(PixelmonItemBlock.java:152)
at net.minecraft.client.multiplayer.PlayerControllerMP.func_187099_a(PlayerControllerMP.java:418)
at PlayerControllerOF.func_187099_a(PlayerControllerOF.java:88)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)
at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:2184)
at net.minecraft.client.Minecraft.func_184118_az(Minecraft.java:1961)

What version of Sponge and Pixelmon are you using?

Pixelmon 1.10.2 - 5.0.0-Beta9-Universal
SpongeForge 1.10.2.2092-5.0.0-Beta-1746

This should be fixed in the latest SpongeForge.

ah nice , trying that right now thanks a lot !

Nope still same thing :

Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213)
at org.spongepowered.common.block.SpongeBlockSnapshotBuilder.worldId(SpongeBlockSnapshotBuilder.java:86)
at net.minecraftforge.common.util.BlockSnapshot.createSpongeBlockSnapshot(BlockSnapshot.java:65)
at net.minecraftforge.event.world.BlockEvent$PlaceEvent.handler$onConstructed$0(BlockEvent.java:74)
at net.minecraftforge.event.world.BlockEvent$PlaceEvent.(BlockEvent.java:186)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlaceHeight(PixelmonItemBlock.java:260)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlaceLength(PixelmonItemBlock.java:227)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlace(PixelmonItemBlock.java:184)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.func_179222_a(PixelmonItemBlock.java:152)
at net.minecraft.client.multiplayer.PlayerControllerMP.func_187099_a(PlayerControllerMP.java:418)
at PlayerControllerOF.func_187099_a(PlayerControllerOF.java:88)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)
at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:2184)
at net.minecraft.client.Minecraft.func_184118_az(Minecraft.java:1961)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1749)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

A detailed walkthrough of the error, its code path and all known details is as follows:

– Head –
Thread: Client thread
Stacktrace:
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213)
at org.spongepowered.common.block.SpongeBlockSnapshotBuilder.worldId(SpongeBlockSnapshotBuilder.java:86)
at net.minecraftforge.common.util.BlockSnapshot.createSpongeBlockSnapshot(BlockSnapshot.java:65)
at net.minecraftforge.event.world.BlockEvent$PlaceEvent.handler$onConstructed$0(BlockEvent.java:74)
at net.minecraftforge.event.world.BlockEvent$PlaceEvent.(BlockEvent.java:186)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlaceHeight(PixelmonItemBlock.java:260)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlaceLength(PixelmonItemBlock.java:227)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.canPlace(PixelmonItemBlock.java:184)
at com.pixelmonmod.pixelmon.items.PixelmonItemBlock.func_179222_a(PixelmonItemBlock.java:152)
at net.minecraft.client.multiplayer.PlayerControllerMP.func_187099_a(PlayerControllerMP.java:418)
at PlayerControllerOF.func_187099_a(PlayerControllerOF.java:88)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)
at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:2184)
at net.minecraft.client.Minecraft.func_184118_az(Minecraft.java:1961)

Are you sure you have the updated version?
Looks like the line number is still 74 but with the patch it should be 75

at net.minecraftforge.event.world.BlockEvent$PlaceEvent.handler$onConstructed$0(BlockEvent.java:74)

file says build beta-1781

Just updated to the new file available and its now fix Thanks a lot guys !

1 Like