Fixed last commit.

This commit is contained in:
SirSengir 2012-07-11 19:15:45 +02:00
parent 57760812bd
commit d3d4473d82

View file

@ -92,7 +92,7 @@ public class BlockTank extends BlockContainer implements ITextureProvider {
ItemStack current = entityplayer.inventory.getCurrentItem(); ItemStack current = entityplayer.inventory.getCurrentItem();
if (current != null) { if (current != null) {
int liquidId = LiquidManager.getLiquidForFilledItem(current); int liquidId = LiquidManager.getLiquidForFilledItem(current).itemID;
TileTank tank = (TileTank) world.getBlockTileEntity(i, j, k); TileTank tank = (TileTank) world.getBlockTileEntity(i, j, k);
@ -111,7 +111,7 @@ public class BlockTank extends BlockContainer implements ITextureProvider {
int qty = tank.empty(BuildCraftAPI.BUCKET_VOLUME, false); int qty = tank.empty(BuildCraftAPI.BUCKET_VOLUME, false);
if(filled != null && qty >= BuildCraftAPI.BUCKET_VOLUME){ if(filled != null && qty >= BuildCraftAPI.BUCKET_VOLUME){
if(current.stacksize > 1 && !entityplayer.inventory.addItemStackToInventory(filled)){ if(current.stackSize > 1 && !entityplayer.inventory.addItemStackToInventory(filled)){
return false; return false;
} }
entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem,