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())

View file

@ -232,6 +232,7 @@ ritual.BloodMagic.regenerationRitual=Ritual of Regeneration
chat.BloodMagic.altarMaker.setTier=Set Tier to: %d
chat.BloodMagic.altarMaker.building=Building a Tier %d Altar
chat.BloodMagic.altarMaker.destroy=Destroyed a Tier %d Altar
chat.BloodMagic.altarMaker.creativeOnly=This is a creative only item.
chat.BloodMagic.damageSource=%s's soul became too weak
chat.BloodMagic.ritual.weak=You feel a push, but are too weak to perform this ritual.
chat.BloodMagic.ritual.prevent=The ritual is actively resisting you!