From f97d1eedee4827f1a69859b61b4074c06c6a14d5 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 2 Aug 2020 10:35:50 -0400 Subject: [PATCH] Fixed #2300 --- core/src/mindustry/content/Bullets.java | 16 ++++++++-------- .../mindustry/ui/dialogs/SettingsMenuDialog.java | 2 +- .../world/blocks/distribution/StackConveyor.java | 3 +++ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/core/src/mindustry/content/Bullets.java b/core/src/mindustry/content/Bullets.java index 40a8a545de..66437f3264 100644 --- a/core/src/mindustry/content/Bullets.java +++ b/core/src/mindustry/content/Bullets.java @@ -239,7 +239,7 @@ public class Bullets implements ContentList{ explodeRange = 20f; }}; - missileExplosive = new MissileBulletType(2.7f, 10, "missile"){{ + missileExplosive = new MissileBulletType(2.7f, 10){{ width = 8f; height = 8f; shrinkY = 0f; @@ -247,7 +247,7 @@ public class Bullets implements ContentList{ splashDamageRadius = 30f; splashDamage = 30f; ammoMultiplier = 4f; - lifetime = 150f; + lifetime = 100f; hitEffect = Fx.blastExplosion; despawnEffect = Fx.blastExplosion; @@ -255,7 +255,7 @@ public class Bullets implements ContentList{ statusDuration = 60f; }}; - missileIncendiary = new MissileBulletType(2.9f, 12, "missile"){{ + missileIncendiary = new MissileBulletType(2.9f, 12){{ frontColor = Pal.lightishOrange; backColor = Pal.lightOrange; width = 7f; @@ -265,26 +265,26 @@ public class Bullets implements ContentList{ homingPower = 0.08f; splashDamageRadius = 20f; splashDamage = 20f; - lifetime = 160f; + lifetime = 100f; hitEffect = Fx.blastExplosion; status = StatusEffects.burning; }}; - missileSurge = new MissileBulletType(4.4f, 20, "bullet"){{ + missileSurge = new MissileBulletType(4.4f, 20){{ width = 8f; height = 8f; shrinkY = 0f; drag = -0.01f; splashDamageRadius = 28f; splashDamage = 40f; - lifetime = 150f; + lifetime = 100f; hitEffect = Fx.blastExplosion; despawnEffect = Fx.blastExplosion; lightning = 2; lightningLength = 14; }}; - standardCopper = new BasicBulletType(2.5f, 9, "bullet"){{ + standardCopper = new BasicBulletType(2.5f, 9){{ width = 7f; height = 9f; lifetime = 60f; @@ -293,7 +293,7 @@ public class Bullets implements ContentList{ ammoMultiplier = 2; }}; - standardDense = new BasicBulletType(3.5f, 18, "bullet"){{ + standardDense = new BasicBulletType(3.5f, 18){{ width = 9f; height = 12f; reloadMultiplier = 0.6f; diff --git a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java index 89bfee1798..2bae826304 100644 --- a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java +++ b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java @@ -363,7 +363,7 @@ public class SettingsMenuDialog extends SettingsDialog{ } }); - graphics.checkPref("linear", true, b -> { + graphics.checkPref("linear", !mobile, b -> { for(Texture tex : Core.atlas.getTextures()){ TextureFilter filter = b ? TextureFilter.linear : TextureFilter.nearest; tex.setFilter(filter, filter); diff --git a/core/src/mindustry/world/blocks/distribution/StackConveyor.java b/core/src/mindustry/world/blocks/distribution/StackConveyor.java index 4a09a3966b..6526f973a5 100644 --- a/core/src/mindustry/world/blocks/distribution/StackConveyor.java +++ b/core/src/mindustry/world/blocks/distribution/StackConveyor.java @@ -161,6 +161,9 @@ public class StackConveyor extends Block implements Autotiler{ for(Building near : proximity){ if(near instanceof StackConveyorEntity){ near.onProximityUpdate(); + for(Building other : near.proximity){ + if(!(other instanceof StackConveyorEntity)) other.onProximityUpdate(); + } } } }