Api Tweak

This commit is contained in:
AlgorithmX2
2014-01-23 13:41:11 -06:00
parent 63680f3543
commit db67edffb8
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import appeng.api.implementations.guiobjects.IGuiItem;
import appeng.api.implementations.guiobjects.IGuiItemObject;
import appeng.api.implementations.items.IAEWrench;
import appeng.api.networking.IGridHost;
import appeng.core.features.AEFeature;
@@ -29,7 +30,7 @@ public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench,
}
@Override
public Object getGuiObject(ItemStack is, World world, int x, int y, int z)
public IGuiItemObject getGuiObject(ItemStack is, World world, int x, int y, int z)
{
TileEntity te = world.getBlockTileEntity( x, y, z );
return new NetworkToolViewer( is, (IGridHost) (te instanceof IGridHost ? te : null) );