aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0587-Add-methods-to-find-targets-for-lightning-strikes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0587-Add-methods-to-find-targets-for-lightning-strikes.patch')
-rw-r--r--patches/server/0587-Add-methods-to-find-targets-for-lightning-strikes.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0587-Add-methods-to-find-targets-for-lightning-strikes.patch b/patches/server/0587-Add-methods-to-find-targets-for-lightning-strikes.patch
index ca096b9dd9..71d07f7f22 100644
--- a/patches/server/0587-Add-methods-to-find-targets-for-lightning-strikes.patch
+++ b/patches/server/0587-Add-methods-to-find-targets-for-lightning-strikes.patch
@@ -7,10 +7,10 @@ Subject: [PATCH] Add methods to find targets for lightning strikes
public net.minecraft.server.level.ServerLevel findLightningRod(Lnet/minecraft/core/BlockPos;)Ljava/util/Optional;
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
-index c72687fb23e8d01639cce7d79e3f97805d51e01f..778d3f3ea2247be5bd6edd382b872f6de5bc359c 100644
+index e18d21d910d1ef285d55fca98ee55899db29c36a..d9677c4306f7efe302388f10289751f37b2e82b5 100644
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
-@@ -764,6 +764,11 @@ public class ServerLevel extends Level implements WorldGenLevel {
+@@ -754,6 +754,11 @@ public class ServerLevel extends Level implements WorldGenLevel {
}
protected BlockPos findLightningTargetAround(BlockPos pos) {
@@ -22,7 +22,7 @@ index c72687fb23e8d01639cce7d79e3f97805d51e01f..778d3f3ea2247be5bd6edd382b872f6d
BlockPos blockposition1 = this.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING, pos);
Optional<BlockPos> optional = this.findLightningRod(blockposition1);
-@@ -778,6 +783,7 @@ public class ServerLevel extends Level implements WorldGenLevel {
+@@ -768,6 +773,7 @@ public class ServerLevel extends Level implements WorldGenLevel {
if (!list.isEmpty()) {
return ((LivingEntity) list.get(this.random.nextInt(list.size()))).blockPosition();
} else {