Makes buckets while player creative mode

This commit is contained in:
Kubuxu 2012-09-16 14:59:36 +03:00
parent 1f9e6f6303
commit 8d4b0eddf5

View file

@ -101,7 +101,7 @@ public class BlockTank extends BlockContainer {
if (liquid != null) {
int qty = tank.fill(Orientations.Unknown, liquid, true);
if (qty != 0 && !BuildCraftCore.debugMode) {
if (qty != 0 && !BuildCraftCore.debugMode && !entityplayer.capabilities.isCreativeMode) {
entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem,
Utils.consumeItem(current));
}