fix for ghost drops on single player from spinning blade

This commit is contained in:
MachineMuse 2013-04-22 19:40:45 -06:00
parent 569c9b27de
commit 8ffc490c6b
2 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@ public class EntitySpinningBlade extends EntityThrowable {
MuseLogger.logDebug("" + block.getUnlocalizedName());
if (block instanceof IShearable) {
IShearable target = (IShearable) block;
if (target.isShearable(this.shootingItem, world, hitMOP.blockX, hitMOP.blockY, hitMOP.blockZ)) {
if (target.isShearable(this.shootingItem, world, hitMOP.blockX, hitMOP.blockY, hitMOP.blockZ) && !world.isRemote) {
ArrayList<ItemStack> drops = target.onSheared(this.shootingItem, world, hitMOP.blockX, hitMOP.blockY, hitMOP.blockZ,
EnchantmentHelper.getEnchantmentLevel(Enchantment.fortune.effectId, this.shootingItem));
Random rand = new Random();

View file

@ -48,12 +48,12 @@ public class ShearsModule extends PowerModuleBase implements IBlockBreakingModul
@Override
public String getName() {
return "Spinning Blades";
return "Shears";
}
@Override
public String getDescription() {
return "Launches a spinning blade of death (or shearing; no damage to sheep).";
return "Cuts through leaves, wool, and creepers alike.";
}
@Override