Fixed an error message (#9355)

This commit is contained in:
CamoGekko 2023-12-07 11:38:12 -06:00 committed by GitHub
parent ec48733150
commit dd5dfa6a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();