From e95fc908f3952737e41efce88c83ce7414e130b0 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 26 Aug 2023 08:22:06 +0100 Subject: add player inventories --- server/player.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/player.lua') 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 -- cgit v1.2.3