diff options
Diffstat (limited to 'patches/server/0961-Fix-strikeLightningEffect-powers-lightning-rods-and-.patch')
-rw-r--r-- | patches/server/0961-Fix-strikeLightningEffect-powers-lightning-rods-and-.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/patches/server/0961-Fix-strikeLightningEffect-powers-lightning-rods-and-.patch b/patches/server/0961-Fix-strikeLightningEffect-powers-lightning-rods-and-.patch index 4a02216b2f..69084fab3f 100644 --- a/patches/server/0961-Fix-strikeLightningEffect-powers-lightning-rods-and-.patch +++ b/patches/server/0961-Fix-strikeLightningEffect-powers-lightning-rods-and-.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Fix strikeLightningEffect powers lightning rods and clears diff --git a/src/main/java/net/minecraft/world/entity/LightningBolt.java b/src/main/java/net/minecraft/world/entity/LightningBolt.java -index 0db0d67f9ac15372becc1166c37f7f0aede4a4da..a9e70484b01fc082ea25d43d1d42833499b5e41d 100644 +index 41a3ca4edf4fa662f2af13efd7b78b56e24aa4a7..0a8a53710c693a220e9475f6f3112b91d8209c00 100644 --- a/src/main/java/net/minecraft/world/entity/LightningBolt.java +++ b/src/main/java/net/minecraft/world/entity/LightningBolt.java -@@ -45,6 +45,7 @@ public class LightningBolt extends Entity { +@@ -46,6 +46,7 @@ public class LightningBolt extends Entity { private ServerPlayer cause; private final Set<Entity> hitEntities = Sets.newHashSet(); private int blocksSetOnFire; @@ -17,7 +17,7 @@ index 0db0d67f9ac15372becc1166c37f7f0aede4a4da..a9e70484b01fc082ea25d43d1d428334 public LightningBolt(EntityType<? extends LightningBolt> type, Level world) { super(type, world); -@@ -85,7 +86,7 @@ public class LightningBolt extends Entity { +@@ -86,7 +87,7 @@ public class LightningBolt extends Entity { @Override public void tick() { super.tick(); @@ -26,7 +26,7 @@ index 0db0d67f9ac15372becc1166c37f7f0aede4a4da..a9e70484b01fc082ea25d43d1d428334 if (this.level().isClientSide()) { this.level().playLocalSound(this.getX(), this.getY(), this.getZ(), SoundEvents.LIGHTNING_BOLT_THUNDER, SoundSource.WEATHER, 10000.0F, 0.8F + this.random.nextFloat() * 0.2F, false); this.level().playLocalSound(this.getX(), this.getY(), this.getZ(), SoundEvents.LIGHTNING_BOLT_IMPACT, SoundSource.WEATHER, 2.0F, 0.5F + this.random.nextFloat() * 0.2F, false); -@@ -132,7 +133,7 @@ public class LightningBolt extends Entity { +@@ -133,7 +134,7 @@ public class LightningBolt extends Entity { } } @@ -35,7 +35,7 @@ index 0db0d67f9ac15372becc1166c37f7f0aede4a4da..a9e70484b01fc082ea25d43d1d428334 if (!(this.level() instanceof ServerLevel)) { this.level().setSkyFlashTime(2); } else if (!this.visualOnly) { -@@ -161,7 +162,7 @@ public class LightningBolt extends Entity { +@@ -162,7 +163,7 @@ public class LightningBolt extends Entity { } private void spawnFire(int spreadAttempts) { |