Void shards break when emptied.
This commit is contained in:
parent
d41613fd44
commit
d5904bfcc8
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ public class ItemVoidShard extends Item {
|
||||||
super(id);
|
super(id);
|
||||||
this.setMaxStackSize(1);
|
this.setMaxStackSize(1);
|
||||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||||
this.setMaxDamage(30);
|
this.setMaxDamage(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -52,6 +52,7 @@ public class ItemVoidShard extends Item {
|
||||||
entityPlayer.experienceLevel += itemStack.stackTagCompound.getInteger("xpStored");
|
entityPlayer.experienceLevel += itemStack.stackTagCompound.getInteger("xpStored");
|
||||||
itemStack.stackTagCompound.setInteger("xpStored", 0);
|
itemStack.stackTagCompound.setInteger("xpStored", 0);
|
||||||
itemStack.stackTagCompound.setBoolean("filled", false);
|
itemStack.stackTagCompound.setBoolean("filled", false);
|
||||||
|
itemStack.damageItem(2, entityPlayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
return itemStack;
|
return itemStack;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue