aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0350-Optimize-call-to-getFluid-for-explosions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0350-Optimize-call-to-getFluid-for-explosions.patch')
-rw-r--r--patches/server/0350-Optimize-call-to-getFluid-for-explosions.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0350-Optimize-call-to-getFluid-for-explosions.patch b/patches/server/0350-Optimize-call-to-getFluid-for-explosions.patch
new file mode 100644
index 0000000000..952f1fc45d
--- /dev/null
+++ b/patches/server/0350-Optimize-call-to-getFluid-for-explosions.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: BrodyBeckwith <[email protected]>
+Date: Tue, 14 Jan 2020 17:49:03 -0500
+Subject: [PATCH] Optimize call to getFluid for explosions
+
+
+diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
+index af9645a3ef9dab1134977b30937f15fa3fa27a95..38bb502e9f1272020a23a3ef8ebb0cb1a5a251ef 100644
+--- a/src/main/java/net/minecraft/world/level/Explosion.java
++++ b/src/main/java/net/minecraft/world/level/Explosion.java
+@@ -172,7 +172,7 @@ public class Explosion {
+ for (float f1 = 0.3F; f > 0.0F; f -= 0.22500001F) {
+ BlockPos blockposition = new BlockPos(d4, d5, d6);
+ BlockState iblockdata = this.level.getBlockState(blockposition);
+- FluidState fluid = this.level.getFluidState(blockposition);
++ FluidState fluid = iblockdata.getFluidState(); // Paper
+
+ if (!this.level.isInWorldBounds(blockposition)) {
+ break;