From 3c6e42e297327bbec0036778b9afa9f7216e2d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Lopez?= <51089082+Bqleine@users.noreply.github.com> Date: Wed, 20 Sep 2023 18:50:45 +0200 Subject: [PATCH] Rename structureSaveMove to structureSaveMode in StructureEditorData (#187) --- src/serializer/PacketSerializer.php | 4 ++-- src/types/StructureEditorData.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/serializer/PacketSerializer.php b/src/serializer/PacketSerializer.php index a075a84d..08ddb3ee 100644 --- a/src/serializer/PacketSerializer.php +++ b/src/serializer/PacketSerializer.php @@ -765,7 +765,7 @@ public function getStructureEditorData() : StructureEditorData{ $result->structureBlockType = $this->getVarInt(); $result->structureSettings = $this->getStructureSettings(); - $result->structureRedstoneSaveMove = $this->getVarInt(); + $result->structureRedstoneSaveMode = $this->getVarInt(); return $result; } @@ -779,7 +779,7 @@ public function putStructureEditorData(StructureEditorData $structureEditorData) $this->putVarInt($structureEditorData->structureBlockType); $this->putStructureSettings($structureEditorData->structureSettings); - $this->putVarInt($structureEditorData->structureRedstoneSaveMove); + $this->putVarInt($structureEditorData->structureRedstoneSaveMode); } public function getNbtRoot() : TreeRoot{ diff --git a/src/types/StructureEditorData.php b/src/types/StructureEditorData.php index 640a50a5..bce999d6 100644 --- a/src/types/StructureEditorData.php +++ b/src/types/StructureEditorData.php @@ -28,5 +28,5 @@ class StructureEditorData{ public bool $showBoundingBox; public int $structureBlockType; public StructureSettings $structureSettings; - public int $structureRedstoneSaveMove; + public int $structureRedstoneSaveMode; }