Serpulo water tweaks

This commit is contained in:
Anuken 2021-10-03 13:12:20 -04:00
parent aed57aaac3
commit 0d0fe394d3
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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){