help suboptimal asm code to not generate GuiContainer in frame info

This commit is contained in:
Glease committed 2022-03-13 20:51:11 +08:00
1 parent db7d6ab7a2
commit 4e638db2a7
1 file changed
+5 -7
@@ -31,18 +31,16 @@ public class GUIHandler implements IGuiHandler
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
Object value = null;
if (ID == UIScreens.EFFECT_JAR.ordinal())
{
value = new GUIEffectJar((TileEntityEffectJar)world.getTileEntity(x, y, z), player);
return new GUIEffectJar((TileEntityEffectJar)world.getTileEntity(x, y, z), player);
}else if (ID == UIScreens.THAUMIC_APIARY.ordinal())
{
TileEntityMagicApiary tileEntityThaumicApiary = (TileEntityMagicApiary) world.getTileEntity(x, y, z);
value = new GuiMagicApiary(player.inventory, tileEntityThaumicApiary);
}
return value;
return new GuiMagicApiary(player.inventory, tileEntityThaumicApiary);
} else {
return null;
}
}
}