Make players mobs too !
This commit is contained in:
@@ -782,7 +782,7 @@ function player_api(game: GameServer, player: ServerPlayer): Player {
|
||||
game.teleport(player, x, y, z);
|
||||
},
|
||||
get health() {
|
||||
return player.vitals.health;
|
||||
return player.health;
|
||||
},
|
||||
max_health: MAX_HEALTH,
|
||||
get food() {
|
||||
|
||||
Reference in New Issue
Block a user