Work on Portable Teleporter, need to fix the screwed up GUI

This commit is contained in:
Aidan C. Brady committed 2015-03-12 16:52:04 -05:00
1 parent 9043e12938
commit 6d36926866
11 files changed
+467 -349

No files matched your search

+18 -1
View File
@@ -116,6 +116,7 @@ import mekanism.common.inventory.InventoryElectricChest;
import mekanism.common.item.ItemPortableTeleporter;
import mekanism.common.item.ItemSeismicReader;
import mekanism.common.multiblock.MultiblockManager;
import mekanism.common.network.PacketPortableTeleporter.PortableTeleporterMessage;
import mekanism.common.tile.TileEntityAdvancedElectricMachine;
import mekanism.common.tile.TileEntityAdvancedFactory;
import mekanism.common.tile.TileEntityAmbientAccumulator;
@@ -509,10 +510,26 @@ public class ClientProxy extends CommonProxy
case 51:
return new GuiTransporterConfig(player, (ISideConfiguration)tileEntity);
}
return null;
}
@Override
public void handleTeleporterUpdate(PortableTeleporterMessage message)
{
GuiScreen screen = Minecraft.getMinecraft().currentScreen;
if(screen instanceof GuiTeleporter && ((GuiTeleporter)screen).itemStack != null)
{
GuiTeleporter teleporter = (GuiTeleporter)screen;
teleporter.clientStatus = message.status;
teleporter.clientFreq = message.frequency;
teleporter.clientPublicCache = message.publicCache;
teleporter.clientPrivateCache = message.privateCache;
}
}
@Override
public void addHitEffects(Coord4D coord, MovingObjectPosition mop)
{