use of pneumaticCraft.client.gui.pneumaticHelmet.GuiHelmetMainScreen in project PneumaticCraft by MineMaarten.
the class GuiSearcher method updateScreen.
@Override
public void updateScreen() {
EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer;
if (parentScreen instanceof GuiHelmetMainScreen) {
if (player.getCurrentArmor(3) == null || player.getCurrentArmor(3).getItem() != Itemss.pneumaticHelmet) {
mc.displayGuiScreen(parentScreen);
onGuiClosed();
}
}
}
Aggregations