Changed fill code to safer BuildcraftAPI.fillLiquidContainer()
This commit is contained in:
parent
2f0f8d9081
commit
ace10b05f4
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ public class TankBucketHandler implements IBucketHandler {
|
|||
|
||||
int qty = tank.empty(BuildCraftAPI.BUCKET_VOLUME, false);
|
||||
|
||||
ItemStack filledBucket = BuildCraftAPI.getFilledItemForLiquid(tank.getLiquidId());
|
||||
ItemStack filledBucket = BuildCraftAPI.fillLiquidContainer(tank.getLiquidId(), new ItemStack(Item.bucketEmpty));
|
||||
|
||||
if (qty >= BuildCraftAPI.BUCKET_VOLUME && filledBucket != null) {
|
||||
tank.empty(BuildCraftAPI.BUCKET_VOLUME, true);
|
||||
|
|
Loading…
Reference in a new issue