mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 18:44:42 +00:00
don't magnet fake entity items from ME assemblers
This commit is contained in:
1 parent
d5cb385fc1
commit
01865afd10
1 file changed
+5
@@ -16,6 +16,7 @@ import net.minecraftforge.event.entity.player.PlayerPickupXpEvent;
|
||||
|
||||
import com.glodblock.github.common.item.ItemWirelessUltraTerminal;
|
||||
|
||||
import appeng.entity.EntityFloatingItem;
|
||||
import appeng.util.Platform;
|
||||
|
||||
public class WirelessMagnet {
|
||||
@@ -74,6 +75,10 @@ public class WirelessMagnet {
|
||||
boolean playSound = false;
|
||||
|
||||
for (EntityItem itemToGet : items) {
|
||||
if (itemToGet.getEntityItem() == null || itemToGet instanceof EntityFloatingItem) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!skipPlayerCheck) {
|
||||
EntityPlayer closestPlayer = world.getClosestPlayerToEntity(itemToGet, magnetRange);
|
||||
if (closestPlayer == null || closestPlayer != player) continue;
|
||||
|
||||
Reference in new issue
Block a user