Fixed #3890
This commit is contained in:
@@ -413,7 +413,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
public void tap(InputEvent event, float x, float y, int count, KeyCode button){
|
public void tap(InputEvent event, float x, float y, int count, KeyCode button){
|
||||||
if(showing()) return;
|
if(showing()) return;
|
||||||
|
|
||||||
if(selected == hovered && count == 2){
|
if(hovered != null && selected == hovered && count == 2){
|
||||||
playSelected();
|
playSelected();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,11 @@ public class LiquidConverter extends GenericCrafter{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(){
|
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);
|
cl.update(false);
|
||||||
outputLiquid.amount = cl.amount;
|
outputLiquid.amount = cl.amount;
|
||||||
super.init();
|
super.init();
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package mindustry.desktop.steam;
|
package mindustry.desktop.steam;
|
||||||
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.math.*;
|
|
||||||
import arc.struct.*;
|
import arc.struct.*;
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
import com.codedisaster.steamworks.*;
|
import com.codedisaster.steamworks.*;
|
||||||
@@ -78,7 +77,7 @@ public class SStats implements SteamUserStatsCallback{
|
|||||||
private void registerEvents(){
|
private void registerEvents(){
|
||||||
|
|
||||||
Events.on(UnitDestroyEvent.class, e -> {
|
Events.on(UnitDestroyEvent.class, e -> {
|
||||||
if(ncustom()){
|
if(campaign()){
|
||||||
if(e.unit.team != Vars.player.team()){
|
if(e.unit.team != Vars.player.team()){
|
||||||
SStat.unitsDestroyed.add();
|
SStat.unitsDestroyed.add();
|
||||||
|
|
||||||
@@ -253,7 +252,7 @@ public class SStats implements SteamUserStatsCallback{
|
|||||||
});
|
});
|
||||||
|
|
||||||
Events.on(WaveEvent.class, e -> {
|
Events.on(WaveEvent.class, e -> {
|
||||||
if(ncustom()){
|
if(campaign()){
|
||||||
SStat.maxWavesSurvived.max(Vars.state.wave);
|
SStat.maxWavesSurvived.max(Vars.state.wave);
|
||||||
|
|
||||||
if(state.stats.buildingsBuilt == 0 && state.wave >= 10){
|
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(){
|
private boolean campaign(){
|
||||||
return Vars.state.isCampaign();
|
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
|
||||||
Reference in New Issue
Block a user