Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Use actual op json to determine op status
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam committed Aug 15, 2016
1 parent c6c1f04 commit 5923b8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public void sendMap(MapView map) {
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
net.minecraft.entity.player.EntityPlayerMP entity = getHandle();

if (getHealth() == 0 || entity.isDead) {
if (getHealth() == 0 || entity.isDead || entity instanceof net.minecraftforge.common.util.FakePlayer) {
return false;
}

Expand Down

0 comments on commit 5923b8c

Please sign in to comment.