mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
11 lines
956 B
Diff
11 lines
956 B
Diff
|
--- 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()));
|