mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 13:09:42 +00:00
Merge branch 'capability' into MC18
This commit is contained in:
commit
0d9fe52f5d
48 files changed
+397
-612
No files matched your search
@@ -39,11 +39,6 @@ public class TileOpenCrate extends TileSimpleInventory {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return LibBlockNames.OPEN_CRATE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
if (worldObj.isRemote)
|
||||
@@ -59,7 +54,7 @@ public class TileOpenCrate extends TileSimpleInventory {
|
||||
}
|
||||
|
||||
if(canEject()) {
|
||||
ItemStack stack = getStackInSlot(0);
|
||||
ItemStack stack = itemHandler.getStackInSlot(0);
|
||||
if(stack != null)
|
||||
eject(stack, redstone);
|
||||
}
|
||||
@@ -83,7 +78,7 @@ public class TileOpenCrate extends TileSimpleInventory {
|
||||
}
|
||||
|
||||
|
||||
setInventorySlotContents(0, null);
|
||||
itemHandler.setStackInSlot(0, null);
|
||||
worldObj.spawnEntityInWorld(item);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user