mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-14 11:59:20 +07:00
Fixed an error message (#9355)
This commit is contained in:
parent
ec48733150
commit
dd5dfa6a97
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user