Giant chesplate
This commit is contained in:
@@ -45,7 +45,6 @@ import { AIR_ID } from "$/common/protocol.ts";
|
||||
import type { GameServer } from "./game_server.ts";
|
||||
import type { ServerPlayer } from "./player.ts";
|
||||
import { Menu, type MenuSlot } from "./menu.ts";
|
||||
import { MAX_HEALTH } from "./vitals.ts";
|
||||
import type { Entity } from "./entity/entity.ts";
|
||||
import { create_entity } from "./entity/entity_types.ts";
|
||||
import { attribute_type, type AttributeType, MODIFIER_OPERATIONS } from "./entity/attributes.ts";
|
||||
@@ -938,7 +937,9 @@ function player_api(game: GameServer, player: ServerPlayer): Player {
|
||||
get health() {
|
||||
return player.health;
|
||||
},
|
||||
max_health: MAX_HEALTH,
|
||||
get max_health() {
|
||||
return player.max_health;
|
||||
},
|
||||
get food() {
|
||||
return player.vitals.food;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user