Jump to content

Recommended Posts

Posted

Created a base extension of EntityFallingBlock before I start overriding anything, to be sure everything works and I have a stable baseline.

public class EntityMovingBlock extends EntityFallingBlock

{
public EntityMovingBlock(World p_i1706_1_)
{
	super(p_i1706_1_);
}

public EntityMovingBlock(World p_i45318_1_, double p_i45318_2_, double p_i45318_4_, double p_i45318_6_, Block p_i45318_8_)
{
	super(p_i45318_1_, p_i45318_2_, p_i45318_4_, p_i45318_6_, p_i45318_8_);
}

public EntityMovingBlock(World p_i45319_1_, double p_i45319_2_, double p_i45319_4_, double p_i45319_6_, Block p_i45319_8_, int p_i45319_9_)
{
	super(p_i45319_1_, p_i45319_2_, p_i45319_4_, p_i45319_6_, p_i45319_8_, p_i45319_9_);
}
}

Register it:

	EntityRegistry.registerModEntity(EntityMovingBlock.class, "entityMovingBlock", 1, instance, ModConfig.fallRange + 50, 3, true);

Test run comes up with a crash when I create one, even though I've changed nothing from the vanilla class.

EntityMovingBlock entityfallingblock = new EntityMovingBlock(world, (double) ((float) x + 0.5F), (double) ((float) y + 0.5F), (double) ((float) z + 0.5F), block, meta);
entityfallingblock.func_145806_a(true);
world.spawnEntityInWorld(entityfallingblock);

 

 

 

java.lang.NullPointerException: Ticking entity

at net.minecraft.entity.item.EntityFallingBlock.func_70071_h_(SourceFile:74)

at net.minecraft.world.World.func_72866_a(World.java:2070)

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.client.Minecraft.func_71407_l(Minecraft.java:1995)

at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)

at net.minecraft.client.main.Main.main(SourceFile:148)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

    public void onUpdate()

    {

        if (this.field_145811_e.getMaterial() == Material.air)

"field_145811_e" being the Block for the EntityFallingBlock

 

 

 

In my mind this point towards an instance of my entity being created using the <init>(World) method for some odd reason. Changing that method to private came up with an error pointing towards where it was being called from: (a forge method out of my control)

 

 

[15:03:24] [Client thread/ERROR] [FML/]: A severe problem occurred during the spawning of an entity

java.lang.NoSuchMethodException: blargerist.cake.blockphysics.entities.EntityMovingBlock.<init>(net.minecraft.world.World)

at java.lang.Class.getConstructor0(Class.java:2892) ~[?:1.7.0_71]

at java.lang.Class.getConstructor(Class.java:1723) ~[?:1.7.0_71]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) [EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) [EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) [EntitySpawnHandler.class:?]

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [simpleChannelInboundHandler.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]

at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]

at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]

at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]

at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [FMLProxyPacket.class:?]

at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [ej.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [bje.class:?]

at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1591) [bao.class:?]

at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

[15:03:24] [Client thread/ERROR] [FML/]: EntitySpawnHandler exception

java.lang.RuntimeException: java.lang.NoSuchMethodException: blargerist.cake.blockphysics.entities.EntityMovingBlock.<init>(net.minecraft.world.World)

at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-16.0.jar:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?]

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]

at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]

at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]

at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]

at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [FMLProxyPacket.class:?]

at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [ej.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [bje.class:?]

at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1591) [bao.class:?]

at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

Caused by: java.lang.NoSuchMethodException: blargerist.cake.blockphysics.entities.EntityMovingBlock.<init>(net.minecraft.world.World)

at java.lang.Class.getConstructor0(Class.java:2892) ~[?:1.7.0_71]

at java.lang.Class.getConstructor(Class.java:1723) ~[?:1.7.0_71]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?]

... 24 more

[15:03:24] [Client thread/ERROR] [FML/]: OpenGuiHandler exception

java.lang.RuntimeException: java.lang.NoSuchMethodException: blargerist.cake.blockphysics.entities.EntityMovingBlock.<init>(net.minecraft.world.World)

at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-16.0.jar:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?]

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]

at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]

at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]

at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]

at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [FMLProxyPacket.class:?]

at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [ej.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [bje.class:?]

at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1591) [bao.class:?]

at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

Caused by: java.lang.NoSuchMethodException: blargerist.cake.blockphysics.entities.EntityMovingBlock.<init>(net.minecraft.world.World)

at java.lang.Class.getConstructor0(Class.java:2892) ~[?:1.7.0_71]

at java.lang.Class.getConstructor(Class.java:1723) ~[?:1.7.0_71]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?]

... 24 more

[15:03:24] [Client thread/ERROR] [FML/]: HandshakeCompletionHandler exception

java.lang.RuntimeException: java.lang.NoSuchMethodException: blargerist.cake.blockphysics.entities.EntityMovingBlock.<init>(net.minecraft.world.World)

at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-16.0.jar:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?]

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]

at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]

at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]

at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]

at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [FMLProxyPacket.class:?]

at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [ej.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [bje.class:?]

at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1591) [bao.class:?]

at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

Caused by: java.lang.NoSuchMethodException: blargerist.cake.blockphysics.entities.EntityMovingBlock.<init>(net.minecraft.world.World)

at java.lang.Class.getConstructor0(Class.java:2892) ~[?:1.7.0_71]

at java.lang.Class.getConstructor(Class.java:1723) ~[?:1.7.0_71]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?]

... 24 more

[15:03:24] [Client thread/ERROR] [FML/]: There was a critical exception handling a packet on channel FML

java.lang.RuntimeException: java.lang.NoSuchMethodException: blargerist.cake.blockphysics.entities.EntityMovingBlock.<init>(net.minecraft.world.World)

at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-16.0.jar:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:121) ~[EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:34) ~[EntitySpawnHandler.class:?]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.channelRead0(EntitySpawnHandler.java:28) ~[EntitySpawnHandler.class:?]

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]

at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[MessageToMessageDecoder.class:?]

at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?]

at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?]

at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [FMLProxyPacket.class:?]

at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [ej.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [bje.class:?]

at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1591) [bao.class:?]

at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962) [bao.class:?]

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [bao.class:?]

at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_71]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]

at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

Caused by: java.lang.NoSuchMethodException: blargerist.cake.blockphysics.entities.EntityMovingBlock.<init>(net.minecraft.world.World)

at java.lang.Class.getConstructor0(Class.java:2892) ~[?:1.7.0_71]

at java.lang.Class.getConstructor(Class.java:1723) ~[?:1.7.0_71]

at cpw.mods.fml.common.network.internal.EntitySpawnHandler.spawnEntity(EntitySpawnHandler.java:72) ~[EntitySpawnHandler.class:?]

... 24 more

 

 

 

I suppose I could just extend onUpdate() and catch/kill any null entities created, but that hardly seems like a good way to do things. Why are these entities being created and updated using a constructor I didn't specify?

 

As a test I tried to register it as a global entity like vanilla(which is bad, and I would rather not do):

	EntityRegistry.registerGlobalEntityID(EntityMovingBlock.class, "entityMovingBlock", 217, Color.red.getRed(), Color.blue.getBlue());

Worked perfectly without crashing. I would obviously rather not register it as a global entity, as it kills things like compatability; So why does it create and update these bad entities if registered as a mod entity? What would be the best way to fix this?

 

EDIT: Rooky mistake. Simply expected too much of a vanilla entities methods to work with a mod entity. Almost no point overriding EntityFallingBlock, most methods need to be overridden in order to even get the same thing. It appears the null entities were being created to read info from NBT and write themselves into non-null entities. Didn't expect it because of an assumption that the vanilla EntityFallingBlock read/write NBT methods would work for a mod entity, which they don't.

 

FIXED: Handle everything myself instead of expecting inherited methods to work.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.