fix: being able to teleport a dead player (#758)

* fix: being able to teleport a dead player

* why did this changes not get commited

* chore: update javadoc
This commit is contained in:
Preva1l authored and GitHub committed 2025-01-30 22:53:44 +00:00
1 parent c2de97baea
commit 3190a81b7d
6 files changed
+40 -1

No files matched your search

@@ -196,4 +196,13 @@ public class FabricUser extends OnlineUser {
return player;
}
/**
* Check if the teleporter can teleport.
*
* @return true if the teleport may complete.
*/
@Override
public boolean isValid() {
return player.isAlive();
}
}