makes buckets unused while player creative mode

This commit is contained in:
Kubuxu 2012-09-16 15:40:41 +03:00
parent 8d4b0eddf5
commit 4cb363db13

View file

@ -110,7 +110,7 @@ public class BlockRefinery extends BlockContainer {
if (liquid != null) {
int qty = ((TileRefinery) world.getBlockTileEntity(i, j, k)).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(entityplayer.inventory.getCurrentItem()));
}