Altar maker notifies of creative only-ness

This commit is contained in:
Nick 2016-01-02 23:58:57 -08:00
parent d740264598
commit a6b243e190
2 changed files with 8 additions and 1 deletions

View file

@ -48,9 +48,15 @@ public class ItemAltarMaker extends Item implements IAltarManipulator
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
{
if (!player.capabilities.isCreativeMode || world.isRemote)
if (world.isRemote)
return stack;
if (!player.capabilities.isCreativeMode)
{
ChatUtil.sendNoSpam(player, TextHelper.localizeEffect("chat.BloodMagic.altarMaker.creativeOnly"));
return stack;
}
stack = NBTHelper.checkNBT(stack);
if (player.isSneaking())