mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23:20:44 +00:00
cancel if no biome
This commit is contained in:
@@ -265,6 +265,9 @@ public class OxygenManager implements Listener {
|
||||
return;
|
||||
}
|
||||
double biomeMultiplier = getBiomeMultiplier(player);
|
||||
if (biomeMultiplier <= 0D) {
|
||||
return;
|
||||
}
|
||||
final double consumed = -drainOxygen(player, elapsedSeconds * drainPerSecond * biomeMultiplier, Activity.IDLE);
|
||||
if (consumed > 0D) {
|
||||
player.sendMessage(Component.text("You consumed ", NamedTextColor.GRAY)
|
||||
|
||||
Reference in New Issue
Block a user