NPE check for bed location.

dev
sigonasr2 9 years ago
parent 9deec24e98
commit 4038c1182e
  1. BIN
      TwosideKeeper.jar
  2. 2
      src/sig/plugin/TwosideKeeper/DeathManager.java

Binary file not shown.

@ -43,7 +43,7 @@ public class DeathManager {
p.setVelocity(new Vector(0,0,0));
CustomDamage.removeIframe(p);
Location loc = p.getLocation();
loc.setY(p.getBedSpawnLocation().getY());
if (p.getBedSpawnLocation()!=null) {loc.setY(p.getBedSpawnLocation().getY());}
p.teleport(loc);
}},1);
PlayerStructure pd = PlayerStructure.GetPlayerStructure(p);

Loading…
Cancel
Save