diff options
author | ubq323 <ubq323@ubq323.website> | 2023-08-26 08:22:06 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-08-26 08:22:06 +0100 |
commit | e95fc908f3952737e41efce88c83ce7414e130b0 (patch) | |
tree | 42795f0bd98a7e790005ac6d5f41a0f836e5e8ea /server/player.lua | |
parent | aace7b1f9c80f5cb4b155d8b2db51f355b6f81b2 (diff) |
add player inventories
Diffstat (limited to 'server/player.lua')
-rw-r--r-- | server/player.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/player.lua b/server/player.lua index bd7b52a..105efff 100644 --- a/server/player.lua +++ b/server/player.lua @@ -15,6 +15,7 @@ function Player.make(cls,peer,username) peer = peer, id = nextid, username = username, + inv = {}, } nextid = nextid + 1 return setmetatable(self,cls) @@ -27,6 +28,7 @@ function Player.info_part(self) y=self.pos.y, color=self.color, username=self.username, + inv = self.inv, } end |