Register belt/goggle packets. You can actually deactivate goggles now, wooooo

This commit is contained in:
Bernhard Bonigl committed 2014-10-22 23:03:34 +02:00
1 parent e37b32234f
commit 8b154ea1b9
3 files changed
+5 -1

No files matched your search

@@ -22,7 +22,7 @@ public class TPlayerStats implements IExtendedEntityProperties, IPlayerExtendedI
public int previousDimension;
public boolean climbWalls;
public boolean activeGoggles = true;
public boolean activeGoggles = false;
public boolean beginnerManual;
public boolean materialManual;
@@ -107,6 +107,7 @@ public class ArmorControls extends TKeyHandler
if (goggles != null && goggles.getItem() instanceof TravelGear) //TODO: Genericize this
{
activeGoggles = !activeGoggles;
PlayerAbilityHelper.toggleGoggles(mc.thePlayer, activeGoggles);
toggleGoggles();
}
}
@@ -129,6 +129,9 @@ public class PacketPipeline extends MessageToMessageCodec<FMLProxyPacket, Abstra
registerPacket(ToolStationPacket.class);
registerPacket(PacketUpdateTE.class);
registerPacket(SignDataPacket.class);
registerPacket(BeltPacket.class);
registerPacket(GogglePacket.class);
}
// Method to call from FMLPostInitializationEvent