mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-12 16:27:37 +00:00
Fixed the Elementium Shears dropping ghost wool items.
This commit is contained in:
1 parent
29d3055e7c
commit
b9cd3ba193
1 file changed
+4
@@ -42,6 +42,9 @@ public class ItemElementiumShears extends ItemManasteelShears {
|
||||
|
||||
@Override
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {
|
||||
if(player.worldObj.isRemote)
|
||||
return;
|
||||
|
||||
if(count != getMaxItemUseDuration(stack) && count % 5 == 0) {
|
||||
int range = 12;
|
||||
List<IShearable> sheep = player.worldObj.getEntitiesWithinAABB(IShearable.class, AxisAlignedBB.getBoundingBox(player.posX - range, player.posY - range, player.posZ - range, player.posX + range, player.posY + range, player.posZ + range));
|
||||
@@ -58,6 +61,7 @@ public class ItemElementiumShears extends ItemManasteelShears {
|
||||
ent.motionX += (rand.nextFloat() - rand.nextFloat()) * 0.1F;
|
||||
ent.motionZ += (rand.nextFloat() - rand.nextFloat()) * 0.1F;
|
||||
}
|
||||
|
||||
ToolCommons.damageItem(stack, 1, player, MANA_PER_DAMAGE);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user