mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
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:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user