aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/server/commands/PlaceCommand.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/server/commands/PlaceCommand.patch')
-rw-r--r--patch-remap/og/net/minecraft/server/commands/PlaceCommand.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/server/commands/PlaceCommand.patch b/patch-remap/og/net/minecraft/server/commands/PlaceCommand.patch
new file mode 100644
index 0000000000..2b96dcd0c8
--- /dev/null
+++ b/patch-remap/og/net/minecraft/server/commands/PlaceCommand.patch
@@ -0,0 +1,10 @@
+--- a/net/minecraft/server/commands/PlaceCommand.java
++++ b/net/minecraft/server/commands/PlaceCommand.java
+@@ -130,6 +130,7 @@
+ if (!structurestart.isValid()) {
+ throw PlaceCommand.ERROR_STRUCTURE_FAILED.create();
+ } else {
++ structurestart.generationEventCause = org.bukkit.event.world.AsyncStructureGenerateEvent.Cause.COMMAND; // CraftBukkit - set AsyncStructureGenerateEvent.Cause.COMMAND as generation cause
+ StructureBoundingBox structureboundingbox = structurestart.getBoundingBox();
+ ChunkCoordIntPair chunkcoordintpair = new ChunkCoordIntPair(SectionPosition.blockToSectionCoord(structureboundingbox.minX()), SectionPosition.blockToSectionCoord(structureboundingbox.minZ()));
+ ChunkCoordIntPair chunkcoordintpair1 = new ChunkCoordIntPair(SectionPosition.blockToSectionCoord(structureboundingbox.maxX()), SectionPosition.blockToSectionCoord(structureboundingbox.maxZ()));