mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-07 05:50:54 +07:00
Serpulo water tweaks
This commit is contained in:
parent
aed57aaac3
commit
0d0fe394d3
@ -435,7 +435,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
}
|
||||
}
|
||||
|
||||
/** Adds an input lock; if this function returns true, input is locked. Used for mod cutscenes or panning. */
|
||||
/** Adds an input lock; if this function returns true, input is locked. Used for mod 'cutscenes' or custom camera panning. */
|
||||
public void addLock(Boolp lock){
|
||||
inputLocks.add(lock);
|
||||
}
|
||||
@ -472,6 +472,11 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
player.unit().type.weapons.first().noAmmoSound.at(player.unit());
|
||||
}
|
||||
|
||||
//you don't want selected blocks while locked, looks weird
|
||||
if(locked()){
|
||||
block = null;
|
||||
}
|
||||
|
||||
wasShooting = player.shooting;
|
||||
|
||||
//only reset the controlled type and control a unit after the timer runs out
|
||||
|
@ -327,7 +327,7 @@ public class SerpuloPlanetGenerator extends PlanetGenerator{
|
||||
}
|
||||
}
|
||||
|
||||
boolean naval = (float)waters / total >= 0.26f;
|
||||
boolean naval = (float)waters / total >= 0.15f;
|
||||
|
||||
//create water pathway if the map is flooded
|
||||
if(naval){
|
||||
|
Loading…
Reference in New Issue
Block a user