Merge pull request #278 from Kubuxu/patch-1

Update common/buildcraft/transport/ItemFacade.java to facades won't be consumed in creative mode
This commit is contained in:
SirSengir 2012-09-15 14:09:55 -07:00
commit f1c67bc518

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;