Fixed ancient staff broken commit

This commit is contained in:
Adubbz 2013-04-01 17:24:04 +11:00
parent b33fb45960
commit 52d594a66b

View file

@ -36,7 +36,14 @@ public class ItemAncientStaff extends Item
{
if (par3EntityPlayer.dimension == 0)
{
par3EntityPlayer.addChatMessage("A gateway to the Promised Land has been buried at the origin of this world.");
if (par2World.getBlockId(0, 64 - 32, 0) != mod_BiomesOPlenty.promisedPortal.blockID)
{
if (!par3EntityPlayer.worldObj.isRemote)
{
par3EntityPlayer.addChatMessage("\u00a75A gateway to the \u00a76\u00a7l\u00a7nPromised Land\u00a75 has been buried at the origin of this world.");
}
int var99 = 32;
@ -145,6 +152,7 @@ public class ItemAncientStaff extends Item
par2World.setBlock(2, 66 - var99, -2, 0);
par2World.setBlock(-2, 66 - var99, -2, 0);
}
}
return par1ItemStack;
}