aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/block/MultifaceSpreader.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/MultifaceSpreader.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/block/MultifaceSpreader.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/MultifaceSpreader.patch b/patch-remap/og/net/minecraft/world/level/block/MultifaceSpreader.patch
new file mode 100644
index 0000000000..216e14a222
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/block/MultifaceSpreader.patch
@@ -0,0 +1,43 @@
+--- a/net/minecraft/world/level/block/MultifaceSpreader.java
++++ b/net/minecraft/world/level/block/MultifaceSpreader.java
+@@ -156,7 +156,7 @@
+ generatoraccess.getChunk(multifacespreader_c.pos()).markPosForPostprocessing(multifacespreader_c.pos());
+ }
+
+- return generatoraccess.setBlock(multifacespreader_c.pos(), iblockdata1, 2);
++ return org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(generatoraccess, multifacespreader_c.source(), multifacespreader_c.pos(), iblockdata1, 2); // CraftBukkit
+ } else {
+ return false;
+ }
+@@ -174,19 +174,19 @@
+ SAME_POSITION {
+ @Override
+ public MultifaceSpreader.c getSpreadPos(BlockPosition blockposition, EnumDirection enumdirection, EnumDirection enumdirection1) {
+- return new MultifaceSpreader.c(blockposition, enumdirection);
++ return new MultifaceSpreader.c(blockposition, enumdirection, blockposition); // CraftBukkit
+ }
+ },
+ SAME_PLANE {
+ @Override
+ public MultifaceSpreader.c getSpreadPos(BlockPosition blockposition, EnumDirection enumdirection, EnumDirection enumdirection1) {
+- return new MultifaceSpreader.c(blockposition.relative(enumdirection), enumdirection1);
++ return new MultifaceSpreader.c(blockposition.relative(enumdirection), enumdirection1, blockposition); // CraftBukkit
+ }
+ },
+ WRAP_AROUND {
+ @Override
+ public MultifaceSpreader.c getSpreadPos(BlockPosition blockposition, EnumDirection enumdirection, EnumDirection enumdirection1) {
+- return new MultifaceSpreader.c(blockposition.relative(enumdirection).relative(enumdirection1), enumdirection.getOpposite());
++ return new MultifaceSpreader.c(blockposition.relative(enumdirection).relative(enumdirection1), enumdirection.getOpposite(), blockposition); // CraftBukkit
+ }
+ };
+
+@@ -195,7 +195,7 @@
+ public abstract MultifaceSpreader.c getSpreadPos(BlockPosition blockposition, EnumDirection enumdirection, EnumDirection enumdirection1);
+ }
+
+- public static record c(BlockPosition pos, EnumDirection face) {
++ public static record c(BlockPosition pos, EnumDirection face, BlockPosition source) { // CraftBukkit
+
+ }
+ }