if(!ClientProxy.tconstructEnabled || Minecraft.getMinecraft().thePlayer.capabilities.isCreativeMode) {
onOpenGui(event.buttonList, ((InventoryEffectRenderer) event.gui).guiLeft-30, ((InventoryEffectRenderer) event.gui).guiTop);
}
}
}
<BUG>public static void onOpenGui(List buttons, int guiLeft, int guiTop) {
</BUG>
if(BattlegearConfig.enableGuiButtons){
int count = 0;
for (GuiPlaceableButton tab : tabsList) {

if(!ClientProxy.tconstructEnabled || Minecraft.getMinecraft().thePlayer.capabilities.isCreativeMode) {
onOpenGui(event.buttonList, ((InventoryEffectRenderer) event.gui).guiLeft-30, ((InventoryEffectRenderer) event.gui).guiTop);
}
}
}
public static void onOpenGui(List<GuiButton> buttons, int guiLeft, int guiTop) {
if(BattlegearConfig.enableGuiButtons){
int count = 0;
for (GuiPlaceableButton tab : tabsList) {
