mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 06:24:24 +00:00
Activating a teleport that requires 0 power will do nothing
Possibly related to #2244
This commit is contained in:
1 parent
feb0ba4924
commit
3387a143cc
1 file changed
+5
-3
@@ -1,6 +1,5 @@
|
||||
package crazypants.enderio.teleport.telepad;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
import java.util.Queue;
|
||||
@@ -609,8 +608,11 @@ public class TileTelePad extends TileTravelAnchor implements IInternalPowerRecei
|
||||
}
|
||||
|
||||
private boolean teleport(Entity entity) {
|
||||
entity.getEntityData().setBoolean(TELEPORTING_KEY, false);
|
||||
return entity.worldObj.isRemote ? clientTeleport(entity) : serverTeleport(entity);
|
||||
if(maxPower > 0) {
|
||||
entity.getEntityData().setBoolean(TELEPORTING_KEY, false);
|
||||
return entity.worldObj.isRemote ? clientTeleport(entity) : serverTeleport(entity);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean clientTeleport(Entity entity) {
|
||||
|
||||
Reference in new issue
Block a user