aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0994-Add-Alternate-Current-redstone-implementation.patch
diff options
context:
space:
mode:
authorEsoteric Enderman <[email protected]>2024-09-28 20:32:56 +0100
committerGitHub <[email protected]>2024-09-28 21:32:56 +0200
commit355b1cbaf6f0d6331476cb6e45291da647493dd1 (patch)
tree7c9976e61893fac5d41106a31513f6653ccf1947 /patches/server/0994-Add-Alternate-Current-redstone-implementation.patch
parent7b031414984efcfe74e9aeb9db10a78e7af63b1a (diff)
downloadPaper-355b1cbaf6f0d6331476cb6e45291da647493dd1.tar.gz
Paper-355b1cbaf6f0d6331476cb6e45291da647493dd1.zip
Add API for explosions to damage the explosion cause (#11180)
This intends to give plugin developers more control over explosions created using the World#createExplosion method, specifically by adding the option for explosions to damage the explosion cause (not the default behavior, and previously impossible to do, as far as I know). This is done by overloading existing methods with an extra `excludeSourceFromDamage` parameter. Co-authored-by: Bjarne Koll <[email protected]>
Diffstat (limited to 'patches/server/0994-Add-Alternate-Current-redstone-implementation.patch')
-rw-r--r--patches/server/0994-Add-Alternate-Current-redstone-implementation.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0994-Add-Alternate-Current-redstone-implementation.patch b/patches/server/0994-Add-Alternate-Current-redstone-implementation.patch
index 8e8dac3c75..dc479927b8 100644
--- a/patches/server/0994-Add-Alternate-Current-redstone-implementation.patch
+++ b/patches/server/0994-Add-Alternate-Current-redstone-implementation.patch
@@ -2306,7 +2306,7 @@ index 0000000000000000000000000000000000000000..33cd90c30c22200a4e1ae64f40a0bf78
+ }
+}
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
-index 1f611e7c877bf89f598148db69c1d4166b00f8ac..d223ecfbb0b8986507ce8b6728edbf7c8d818b7d 100644
+index acc11fc7f30b6d4a3a4445b7db25bf99c93b39f2..6f3eedade396405d67ff56c66755929acda5cff0 100644
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
@@ -228,6 +228,7 @@ public class ServerLevel extends Level implements WorldGenLevel, ca.spottedleaf.
@@ -2317,7 +2317,7 @@ index 1f611e7c877bf89f598148db69c1d4166b00f8ac..d223ecfbb0b8986507ce8b6728edbf7c
public LevelChunk getChunkIfLoaded(int x, int z) {
return this.chunkSource.getChunkAtIfLoadedImmediately(x, z); // Paper - Use getChunkIfLoadedImmediately
-@@ -2425,6 +2426,13 @@ public class ServerLevel extends Level implements WorldGenLevel, ca.spottedleaf.
+@@ -2427,6 +2428,13 @@ public class ServerLevel extends Level implements WorldGenLevel, ca.spottedleaf.
return crashreportsystemdetails;
}
@@ -2332,10 +2332,10 @@ index 1f611e7c877bf89f598148db69c1d4166b00f8ac..d223ecfbb0b8986507ce8b6728edbf7c
EntityCallbacks() {}
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
-index 87cde688976a45aa8848586b5371b3ab493813ea..5c4eaa6bcf20b0fcec14bd5ef76ea6f29a8613a2 100644
+index c4ec80bbab850fe767a345d96f02103ca43eb3cb..ca1dab96b40511d53aedd4f64e6cd0fb03583710 100644
--- a/src/main/java/net/minecraft/world/level/Level.java
+++ b/src/main/java/net/minecraft/world/level/Level.java
-@@ -2013,4 +2013,14 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl
+@@ -2030,4 +2030,14 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl
}
}
// Paper end - notify observers even if grow failed