Forgot to register the entity to receive key events
This commit is contained in:
parent
06006f32c0
commit
ac9573ff83
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,6 @@ public class PacketManagerKeyEvent implements IPacketManager
|
|||
try
|
||||
{
|
||||
int key = data.readInt();
|
||||
|
||||
for (IControlReceiver receiver : receivers)
|
||||
{
|
||||
receiver.keyTyped((EntityPlayer) player, key);
|
||||
|
@ -74,7 +73,6 @@ public class PacketManagerKeyEvent implements IPacketManager
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.out.println("[CoreMachine] Error reading packet at tile packet manager");
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ import net.minecraft.util.DamageSource;
|
|||
import net.minecraft.world.World;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import dark.core.interfaces.IControlReceiver;
|
||||
import dark.core.network.PacketManagerKeyEvent;
|
||||
import dark.core.prefab.EntityAdvanced;
|
||||
|
||||
public class EntityDrivable extends EntityAdvanced implements IControlReceiver
|
||||
|
@ -25,6 +26,7 @@ public class EntityDrivable extends EntityAdvanced implements IControlReceiver
|
|||
this.ignoreFrustumCheck = true;
|
||||
this.isImmuneToFire = true;
|
||||
this.yOffset = 1.0f;
|
||||
PacketManagerKeyEvent.instance().register(this);
|
||||
}
|
||||
|
||||
public EntityDrivable(World world, double xx, double yy, double zz)
|
||||
|
|
Loading…
Reference in a new issue