Oyxgen env

This commit is contained in:
Anuken
2021-08-20 10:06:16 -04:00
parent cd7103e3f4
commit f0a8c6e281
3 changed files with 17 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import mindustry.content.*;
import mindustry.game.EventType.*;
import mindustry.gen.*;
import mindustry.world.*;
import mindustry.world.meta.*;
import static mindustry.Vars.*;
@@ -17,7 +18,7 @@ public class Fires{
/** Start a fire on the tile. If there already is a fire there, refreshes its lifetime. */
public static void create(Tile tile){
if(net.client() || tile == null || !state.rules.fire) return; //not clientside.
if(net.client() || tile == null || !state.rules.fire || !state.rules.hasEnv(Env.oxygen)) return; //not clientside.
Fire fire = map.get(tile.pos());