remove check who dropped the item

This commit is contained in:
Alexdoru committed 2025-06-04 17:42:04 +02:00
1 parent 08bffd9d50
commit d5cb385fc1
1 file changed
+9 -12
@@ -79,20 +79,17 @@ public class WirelessMagnet {
if (closestPlayer == null || closestPlayer != player) continue;
}
if (itemToGet.func_145800_j() == null || !itemToGet.func_145800_j().equals(player.getCommandSenderName())) {
if (itemToGet.delayBeforeCanPickup > 0) {
itemToGet.delayBeforeCanPickup = 0;
}
if (itemToGet.delayBeforeCanPickup <= 0) {
playSound = true;
itemToGet.motionX = 0;
itemToGet.motionY = 0;
itemToGet.motionZ = 0;
itemToGet.setPosition(
player.posX - 0.2 + (world.rand.nextDouble() * 0.4),
player.posY - 0.6,
player.posZ - 0.2 + (world.rand.nextDouble() * 0.4));
}
playSound = true;
itemToGet.motionX = 0;
itemToGet.motionY = 0;
itemToGet.motionZ = 0;
itemToGet.setPosition(
player.posX - 0.2 + (world.rand.nextDouble() * 0.4),
player.posY - 0.6,
player.posZ - 0.2 + (world.rand.nextDouble() * 0.4));
}
if (playSound) {