mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
Register belt/goggle packets. You can actually deactivate goggles now, wooooo
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user