Rewrite GUIs with ModularUI (#52)

* Rewrite GUIs with ModularUI

* Check null stack
This commit is contained in:
miozune authored and GitHub committed 2022-12-10 20:14:47 +01:00
1 parent d21ba33277
commit ef5a92448c
38 files changed
+686 -793

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
package emt.block;
import com.gtnewhorizons.modularui.api.UIInfos;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
@@ -145,7 +146,7 @@ public class BlockSolars extends BlockBaseContainer {
}
TileEntity tileentity = world.getTileEntity(i, j, k);
if (tileentity != null) {
player.openGui(emt.EMT.instance, 1, world, i, j, k);
UIInfos.TILE_MODULAR_UI.open(player, world, i, j, k);
}
return true;
}