mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 05:02:25 +00:00
Fix: Magnet shouldn't pickup things while the player is dead
This commit is contained in:
1 parent
2dead576f3
commit
6e36a7e7df
1 file changed
+1
-1
@@ -34,7 +34,7 @@ public class MagnetController implements IEntitySelector {
|
||||
public void onPlayerTick(TickEvent.PlayerTickEvent event) {
|
||||
|
||||
ActiveMagnet mag = getActiveMagnet(event.player);
|
||||
if(mag != null) {
|
||||
if (mag != null && event.player.getHealth() > 0f) {
|
||||
doHoover(event.player);
|
||||
if(event.side == Side.SERVER && event.player.worldObj.getTotalWorldTime() % 20 == 0) {
|
||||
ItemMagnet.drainPerSecondPower(mag.item);
|
||||
|
||||
Reference in new issue
Block a user