Skip to content

Commit

Permalink
protocol/structure.go: Added missing 'AllowNonTickingChunks' field.
Browse files Browse the repository at this point in the history
Resolves #154.
  • Loading branch information
JustTalDevelops committed Sep 29, 2022
1 parent fe3cb79 commit c0fed45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions minecraft/protocol/structure.go
Expand Up @@ -36,6 +36,9 @@ type StructureSettings struct {
// IgnoreBlocks specifies if the structure should ignore blocks or include them. If set to false, blocks
// will show up in the exported structure.
IgnoreBlocks bool
// AllowNonTickingChunks specifies if the structure should allow non-ticking chunks. If set to false, the structure
// will export non-ticking chunks.
AllowNonTickingChunks bool
// Size is the size of the area that is about to be exported. The area exported will start at the
// Position + Offset, and will extend as far as Size specifies.
Size BlockPos
Expand Down Expand Up @@ -70,6 +73,7 @@ func StructSettings(r IO, x *StructureSettings) {
r.String(&x.PaletteName)
r.Bool(&x.IgnoreEntities)
r.Bool(&x.IgnoreBlocks)
r.Bool(&x.AllowNonTickingChunks)
r.UBlockPos(&x.Size)
r.UBlockPos(&x.Offset)
r.Varint64(&x.LastEditingPlayerUniqueID)
Expand Down

0 comments on commit c0fed45

Please sign in to comment.