diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/PlaceCommand.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/PlaceCommand.java.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/PlaceCommand.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/PlaceCommand.java.patch new file mode 100644 index 0000000000..7df5e5ebb8 --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/server/commands/PlaceCommand.java.patch @@ -0,0 +1,16 @@ +--- a/net/minecraft/server/commands/PlaceCommand.java ++++ b/net/minecraft/server/commands/PlaceCommand.java +@@ -131,9 +130,10 @@ + if (!structurestart.isValid()) { + throw PlaceCommand.ERROR_STRUCTURE_FAILED.create(); + } else { +- BoundingBox boundingbox = structurestart.getBoundingBox(); +- ChunkPos chunkpos = new ChunkPos(SectionPos.blockToSectionCoord(boundingbox.minX()), SectionPos.blockToSectionCoord(boundingbox.minZ())); +- ChunkPos chunkpos1 = new ChunkPos(SectionPos.blockToSectionCoord(boundingbox.maxX()), SectionPos.blockToSectionCoord(boundingbox.maxZ())); ++ structurestart.generationEventCause = org.bukkit.event.world.AsyncStructureGenerateEvent.Cause.COMMAND; // CraftBukkit - set AsyncStructureGenerateEvent.Cause.COMMAND as generation cause ++ BoundingBox structureboundingbox = structurestart.getBoundingBox(); ++ ChunkPos chunkcoordintpair = new ChunkPos(SectionPos.blockToSectionCoord(structureboundingbox.minX()), SectionPos.blockToSectionCoord(structureboundingbox.minZ())); ++ ChunkPos chunkcoordintpair1 = new ChunkPos(SectionPos.blockToSectionCoord(structureboundingbox.maxX()), SectionPos.blockToSectionCoord(structureboundingbox.maxZ())); + + checkLoaded(serverlevel, chunkpos, chunkpos1); + ChunkPos.rangeClosed(chunkpos, chunkpos1).forEach((chunkpos2) -> { |