From dd5dfa6a9734bb459a59e1022fc3ace93685a424 Mon Sep 17 00:00:00 2001 From: CamoGekko <142858559+CamoGekko@users.noreply.github.com> Date: Thu, 7 Dec 2023 11:38:12 -0600 Subject: [PATCH] Fixed an error message (#9355) --- core/src/mindustry/type/UnitType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index a8623a6d65..8c29a2e50d 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -952,7 +952,7 @@ public class UnitType extends UnlockableContent implements Senseable{ public void createIcons(MultiPacker packer){ super.createIcons(packer); - if(constructor == null) throw new IllegalArgumentException("No constructor set up for unit '" + name + "'. Make sure you assign a valid value to `constructor`, e.g. `constructor = UnitEntity::new`"); + if(constructor == null) throw new IllegalArgumentException("No constructor set up for unit '" + name + "', add this argument to your units field: `constructor = UnitEntity::create`"); sample = constructor.get();