mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 13:08:20 +07:00
Fixed #3890
This commit is contained in:
parent
9537051590
commit
999cc9c651
@ -413,7 +413,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
public void tap(InputEvent event, float x, float y, int count, KeyCode button){
|
||||
if(showing()) return;
|
||||
|
||||
if(selected == hovered && count == 2){
|
||||
if(hovered != null && selected == hovered && count == 2){
|
||||
playSelected();
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,11 @@ public class LiquidConverter extends GenericCrafter{
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
ConsumeLiquidBase cl = consumes.get(ConsumeType.liquid);
|
||||
if(!consumes.has(ConsumeType.liquid) || !(consumes.get(ConsumeType.liquid) instanceof ConsumeLiquid)){
|
||||
throw new RuntimeException("LiquidsConverters must have a ConsumeLiquid. Note that filters are not supported.");
|
||||
}
|
||||
|
||||
ConsumeLiquid cl = consumes.get(ConsumeType.liquid);
|
||||
cl.update(false);
|
||||
outputLiquid.amount = cl.amount;
|
||||
super.init();
|
||||
|
@ -1,7 +1,6 @@
|
||||
package mindustry.desktop.steam;
|
||||
|
||||
import arc.*;
|
||||
import arc.math.*;
|
||||
import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import com.codedisaster.steamworks.*;
|
||||
@ -78,7 +77,7 @@ public class SStats implements SteamUserStatsCallback{
|
||||
private void registerEvents(){
|
||||
|
||||
Events.on(UnitDestroyEvent.class, e -> {
|
||||
if(ncustom()){
|
||||
if(campaign()){
|
||||
if(e.unit.team != Vars.player.team()){
|
||||
SStat.unitsDestroyed.add();
|
||||
|
||||
@ -253,7 +252,7 @@ public class SStats implements SteamUserStatsCallback{
|
||||
});
|
||||
|
||||
Events.on(WaveEvent.class, e -> {
|
||||
if(ncustom()){
|
||||
if(campaign()){
|
||||
SStat.maxWavesSurvived.max(Vars.state.wave);
|
||||
|
||||
if(state.stats.buildingsBuilt == 0 && state.wave >= 10){
|
||||
@ -326,10 +325,6 @@ public class SStats implements SteamUserStatsCallback{
|
||||
});
|
||||
}
|
||||
|
||||
private boolean ncustom(){
|
||||
return campaign();
|
||||
}
|
||||
|
||||
private boolean campaign(){
|
||||
return Vars.state.isCampaign();
|
||||
}
|
||||
|
8
fastlane/metadata/android/en-US/changelogs/29772.txt
Normal file
8
fastlane/metadata/android/en-US/changelogs/29772.txt
Normal file
@ -0,0 +1,8 @@
|
||||
[This is a truncated changelog, see Github for full notes]
|
||||
- Slightly increased Lancer build cost
|
||||
- Double-tapping now enters a campaign map (Contributed by @joshuaptfan)
|
||||
- Minor logic memory optimizations - block/sensor constants are no longer stored in every processor
|
||||
- Doubled surge smelter item capacity
|
||||
- Made Fungal Pass slightly easier
|
||||
- Fixed some rare crashes
|
||||
- Fixed unit spawn shockwave appearing too late
|
Loading…
Reference in New Issue
Block a user