Skip to content

Commit

Permalink
StructureSettings: added missing field from 1.18.30, closes #102
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Nov 19, 2022
1 parent 15d8e67 commit ce900ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/serializer/PacketSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/types/StructureSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ce900ff

Please sign in to comment.