put gui ids in other class

This commit is contained in:
Raoul Van den Berge
2015-12-24 21:49:20 +01:00
parent 770483ee02
commit 0e0c6eb5b9
17 changed files with 70 additions and 53 deletions

View File

@@ -8,6 +8,7 @@ import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import storagecraft.StorageCraft;
import storagecraft.StorageCraftGUI;
import storagecraft.tile.TileExternalStorage;
public class BlockExternalStorage extends BlockBase implements ITileEntityProvider
@@ -31,7 +32,7 @@ public class BlockExternalStorage extends BlockBase implements ITileEntityProvid
{
if (!world.isRemote)
{
player.openGui(StorageCraft.INSTANCE, StorageCraft.GUI.EXTERNAL_STORAGE, world, x, y, z);
player.openGui(StorageCraft.INSTANCE, StorageCraftGUI.EXTERNAL_STORAGE, world, x, y, z);
}
return true;