From ce900ffa6a4cc07af92686f27d580dd2e2541382 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 19 Nov 2022 16:11:48 +0000 Subject: [PATCH] StructureSettings: added missing field from 1.18.30, closes #102 --- src/serializer/PacketSerializer.php | 2 ++ src/types/StructureSettings.php | 1 + 2 files changed, 3 insertions(+) diff --git a/src/serializer/PacketSerializer.php b/src/serializer/PacketSerializer.php index e36ab5a8..0c14e52a 100644 --- a/src/serializer/PacketSerializer.php +++ b/src/serializer/PacketSerializer.php @@ -712,6 +712,7 @@ public function getStructureSettings() : StructureSettings{ $result->ignoreEntities = $this->getBool(); $result->ignoreBlocks = $this->getBool(); + $result->allowNonTickingChunks = $this->getBool(); $result->dimensions = $this->getBlockPosition(); $result->offset = $this->getBlockPosition(); @@ -733,6 +734,7 @@ public function putStructureSettings(StructureSettings $structureSettings) : voi $this->putBool($structureSettings->ignoreEntities); $this->putBool($structureSettings->ignoreBlocks); + $this->putBool($structureSettings->allowNonTickingChunks); $this->putBlockPosition($structureSettings->dimensions); $this->putBlockPosition($structureSettings->offset); diff --git a/src/types/StructureSettings.php b/src/types/StructureSettings.php index 6b5d0c1b..b5195dc7 100644 --- a/src/types/StructureSettings.php +++ b/src/types/StructureSettings.php @@ -21,6 +21,7 @@ class StructureSettings{ public string $paletteName; public bool $ignoreEntities; public bool $ignoreBlocks; + public bool $allowNonTickingChunks; public BlockPosition $dimensions; public BlockPosition $offset; public int $lastTouchedByPlayerID;