Altar maker notifies of creative only-ness
This commit is contained in:
parent
d740264598
commit
a6b243e190
2 changed files with 8 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue