Merge pull request #7 from Adubbz/MiscFixes

Misc fixes
This commit is contained in:
ted 2013-03-31 22:42:14 -07:00
commit e3194e06eb
5 changed files with 125 additions and 113 deletions

View file

@ -36,7 +36,14 @@ public class ItemAncientStaff extends Item
{ {
if (par3EntityPlayer.dimension == 0) 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; 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);
par2World.setBlock(-2, 66 - var99, -2, 0); par2World.setBlock(-2, 66 - var99, -2, 0);
} }
}
return par1ItemStack; return par1ItemStack;
} }

View file

@ -2,9 +2,10 @@ package tdwp_ftw.biomesop.items;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemAxe;
import net.minecraft.item.ItemSword; import net.minecraft.item.ItemSword;
public class ItemBOPAxe extends ItemSword public class ItemBOPAxe extends ItemAxe
{ {
public int TextureID = 0; public int TextureID = 0;

View file

@ -2,9 +2,10 @@ package tdwp_ftw.biomesop.items;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemHoe;
import net.minecraft.item.ItemSword; import net.minecraft.item.ItemSword;
public class ItemBOPHoe extends ItemSword public class ItemBOPHoe extends ItemHoe
{ {
public int TextureID = 0; public int TextureID = 0;

View file

@ -2,9 +2,10 @@ package tdwp_ftw.biomesop.items;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.ItemSword; import net.minecraft.item.ItemSword;
public class ItemBOPPickaxe extends ItemSword public class ItemBOPPickaxe extends ItemPickaxe
{ {
public int TextureID = 0; public int TextureID = 0;

View file

@ -2,9 +2,10 @@ package tdwp_ftw.biomesop.items;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemSpade;
import net.minecraft.item.ItemSword; import net.minecraft.item.ItemSword;
public class ItemBOPSpade extends ItemSword public class ItemBOPSpade extends ItemSpade
{ {
public int TextureID = 0; public int TextureID = 0;