Update common/buildcraft/transport/ItemFacade.java

Facades won't be consumed in creative mode.
This commit is contained in:
Kubuxu 2012-09-15 21:49:45 +03:00
parent 00e9a42027
commit 189e46221e

View file

@ -77,7 +77,8 @@ public class ItemFacade extends ItemBuildCraft {
return true;
} else {
if (((TileGenericPipe)tile).addFacade(Orientations.values()[side], ItemFacade.getBlockId(stack.getItemDamage()), ItemFacade.getMetaData(stack.getItemDamage()))){
stack.stackSize--;
if (!player.capabilities.isCreativeMode)
stack.stackSize--;
return true;
}
return false;