summaryrefslogtreecommitdiff
path: root/common/chunk.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-06-18 22:28:37 +0100
committerubq323 <ubq323@ubq323.website>2023-06-18 22:28:37 +0100
commitf55c9f415a081a175e48b51db894f23e59ce47a2 (patch)
treeee63f98d5c4f1a2a11e9800ced9c2861eb3085a7 /common/chunk.lua
parent598bd4332deddd5f4c506689cbd136f495835ea7 (diff)
fix line lengths
Diffstat (limited to 'common/chunk.lua')
-rw-r--r--common/chunk.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/chunk.lua b/common/chunk.lua
index 563723e..51c0a6c 100644
--- a/common/chunk.lua
+++ b/common/chunk.lua
@@ -33,7 +33,10 @@ function Chunk.set_at(self,hoffs,tile)
end
function Chunk.data_packet(self)
- return json.encode{t="chunk",tiles=rle.encode(self.tiles),u=self.cp.u,v=self.cp.v}
+ return json.encode{
+ t="chunk", tiles=rle.encode(self.tiles),
+ u=self.cp.u, v=self.cp.v
+ }
end
function Chunk.from_packet_data(cls,packet)
-- assuming packet has already been json.decoded