diff options
author | ubq323 <ubq323@ubq323.website> | 2023-02-11 00:31:54 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-02-11 00:31:54 +0000 |
commit | 81ee73e37348eaae6b1e4a23378d13d129133904 (patch) | |
tree | f764a6d08ab788b797fb99a9e4e1ff99fba05cb6 /client | |
parent | 7952bbc2a606ab22e04112eb2f21a573d0db116e (diff) |
rework of tick interval, refactor of chunk loading/generation into ChunkS class
Diffstat (limited to 'client')
-rw-r--r-- | client/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/main.lua b/client/main.lua index 43705fe..a544250 100644 --- a/client/main.lua +++ b/client/main.lua @@ -151,7 +151,7 @@ function love.update(dt) local pl = j.pl local_player = {pos=coords.Pos:make(pl.x,pl.y),color=pl.color,id=pl.id} elseif op == "chunk" then - local ch = Chunk.from_packet_data(j) + local ch = Chunk:from_packet_data(j) map:add_chunk(ch) elseif op == "settile" then local h = coords.Hex:make(j.q,j.r) |