mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-20 12:09:41 +00:00
Rewrite GUIs with ModularUI (#52)
* Rewrite GUIs with ModularUI * Check null stack
This commit is contained in:
1 parent
d21ba33277
commit
ef5a92448c
38 files changed
+686
-793
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user