From 266c5a541bd22dd8c6d251605b468ea91a6b148c Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 19 Dec 2025 20:07:34 -0500 Subject: [PATCH] Do not allow patching hasItems/liquids/power There is no good reason to change these, and setting them to false usually just makes the game crash. Consumers set them up automatically. --- core/src/mindustry/world/Block.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/world/Block.java b/core/src/mindustry/world/Block.java index 133cb377c5..26f1a576b0 100644 --- a/core/src/mindustry/world/Block.java +++ b/core/src/mindustry/world/Block.java @@ -41,11 +41,11 @@ import static mindustry.Vars.*; public class Block extends UnlockableContent implements Senseable{ /** If true, buildings have an ItemModule. */ - public boolean hasItems; + public @NoPatch boolean hasItems; /** If true, buildings have a LiquidModule. */ - public boolean hasLiquids; + public @NoPatch boolean hasLiquids; /** If true, buildings have a PowerModule. */ - public boolean hasPower; + public @NoPatch boolean hasPower; /** Flag for determining whether this block outputs liquid somewhere; used for connections. */ public boolean outputsLiquid = false; /** Used by certain power blocks (nodes) to flag as non-consuming of power. True by default, even if this block has no power. */