CameraEntity now registers itself. It doesn't need external code doing its job!

This commit is contained in:
CrushedPixel
2015-07-16 17:45:52 +02:00
parent 86bd646b35
commit a19317ecdd
2 changed files with 3 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ import net.minecraft.util.MathHelper;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import org.lwjgl.Sys;
@@ -53,6 +54,7 @@ public class CameraEntity extends EntityPlayer {
public CameraEntity(World worldIn) {
super(worldIn, Minecraft.getMinecraft().getSession().getProfile());
FMLCommonHandler.instance().bus().register(this);
}
@SubscribeEvent