Fixed missing texture and XP glitch
Signed-off-by: StevenRS11 <stevenrs11@aol.com>
This commit is contained in:
@@ -10,6 +10,7 @@ import net.minecraft.entity.Entity;
|
|||||||
import net.minecraft.entity.EntityLiving;
|
import net.minecraft.entity.EntityLiving;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.entity.player.EntityPlayerMP;
|
import net.minecraft.entity.player.EntityPlayerMP;
|
||||||
|
import net.minecraft.item.EnumToolMaterial;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.AxisAlignedBB;
|
import net.minecraft.util.AxisAlignedBB;
|
||||||
@@ -198,6 +199,15 @@ public class ItemRiftBlade extends itemDimDoor
|
|||||||
{
|
{
|
||||||
return "/PocketBlockTextures.png";
|
return "/PocketBlockTextures.png";
|
||||||
}
|
}
|
||||||
|
public int getItemEnchantability()
|
||||||
|
{
|
||||||
|
return EnumToolMaterial.GOLD.getEnchantability();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
|
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ public class dimHelper extends DimensionManager
|
|||||||
|
|
||||||
if(linkData!=null)
|
if(linkData!=null)
|
||||||
{
|
{
|
||||||
|
|
||||||
int destinationID=linkData.destDimID;
|
int destinationID=linkData.destDimID;
|
||||||
int x=linkData.destXCoord;
|
int x=linkData.destXCoord;
|
||||||
int y=linkData.destYCoord;
|
int y=linkData.destYCoord;
|
||||||
@@ -221,7 +222,15 @@ public class dimHelper extends DimensionManager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.addExperience(1);
|
if(rand.nextBoolean())
|
||||||
|
{
|
||||||
|
player.addExperience(1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
player.addExperience(-1);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!world.isRemote)
|
if(!world.isRemote)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user