From 207806440babb041d5b3a932c5ad87b9b905bc72 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 22 Aug 2023 10:10:08 -0400 Subject: [PATCH] Fixed #8967 --- core/assets/bundles/bundle.properties | 4 ++-- core/src/mindustry/ai/types/MinerAI.java | 4 ++++ core/src/mindustry/core/NetClient.java | 4 ++-- gradle.properties | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 7bfb819720..bf270b6246 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -2216,8 +2216,8 @@ unit.collaris.description = Fires long-range fragmenting artillery at enemy targ unit.elude.description = Fires pairs of homing bullets at enemy targets. Can float over bodies of liquid. unit.avert.description = Fires twisting pairs of bullets at enemy targets. unit.obviate.description = Fires twisting pairs of lightning orbs at enemy targets. -unit.quell.description = Fires long-range homing missiles at enemy targets. Suppresses enemy structure repair blocks. -unit.disrupt.description = Fires long-range homing suppression missiles at enemy targets. Suppresses enemy structure repair blocks. +unit.quell.description = Fires long-range homing missiles at enemy targets. Suppresses enemy structure repair blocks. Only attacks ground targets. +unit.disrupt.description = Fires long-range homing suppression missiles at enemy targets. Suppresses enemy structure repair blocks. Only attacks ground targets. unit.evoke.description = Builds structures to defend the Bastion core. Repairs structures with a beam. Capable of carrying 2x2 structures. unit.incite.description = Builds structures to defend the Citadel core. Repairs structures with a beam. Capable of carrying 2x2 structures. unit.emanate.description = Builds structures to defend the Acropolis core. Repairs structures with beams. Capable of carrying 2x2 structures. diff --git a/core/src/mindustry/ai/types/MinerAI.java b/core/src/mindustry/ai/types/MinerAI.java index 0c71d98cdc..c15e8485bf 100644 --- a/core/src/mindustry/ai/types/MinerAI.java +++ b/core/src/mindustry/ai/types/MinerAI.java @@ -23,6 +23,10 @@ public class MinerAI extends AIController{ unit.mineTile(null); } + if(ore != null && !unit.validMine(ore)){ + ore = null; + } + if(mining){ if(timer.get(timerTarget2, 60 * 4) || targetItem == null){ targetItem = unit.type.mineItems.min(i -> indexer.hasOre(i) && unit.canMine(i), i -> core.items.get(i)); diff --git a/core/src/mindustry/core/NetClient.java b/core/src/mindustry/core/NetClient.java index 0baf334dae..9f6a8bf922 100644 --- a/core/src/mindustry/core/NetClient.java +++ b/core/src/mindustry/core/NetClient.java @@ -165,14 +165,14 @@ public class NetClient implements ApplicationListener{ public static void sound(Sound sound, float volume, float pitch, float pan){ if(sound == null || headless) return; - sound.play(Mathf.clamp(volume, 0, 8f) * Core.settings.getInt("sfxvol") / 100f, pitch, pan, false, false); + sound.play(Mathf.clamp(volume, 0, 8f) * Core.settings.getInt("sfxvol") / 100f, Mathf.clamp(pitch, 0f, 20f), pan, false, false); } @Remote(variants = Variant.both, unreliable = true, called = Loc.server) public static void soundAt(Sound sound, float x, float y, float volume, float pitch){ if(sound == null || headless) return; - sound.at(x, y, pitch, Mathf.clamp(volume, 0, 4f)); + sound.at(x, y, Mathf.clamp(pitch, 0f, 20f), Mathf.clamp(volume, 0, 4f)); } @Remote(variants = Variant.both, unreliable = true) diff --git a/gradle.properties b/gradle.properties index b79b0762eb..d0d37c4167 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,4 +25,4 @@ org.gradle.caching=true #used for slow jitpack builds; TODO see if this actually works org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.connectionTimeout=100000 -archash=5baefbb2af +archash=f0ed7ae5d4