Merge pull request #2611 from hea3ven/6.4.x
fix an error when loading robot resources
This commit is contained in:
commit
1e4b647331
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ public abstract class ResourceId {
|
|||
// Migration support for 6.4.x
|
||||
cls = RobotManager.getResourceIdByLegacyClassName(nbt.getString("class"));
|
||||
} else {
|
||||
cls = RobotManager.getResourceIdByName("resourceName");
|
||||
cls = RobotManager.getResourceIdByName(nbt.getString("resourceName"));
|
||||
}
|
||||
|
||||
ResourceId id = (ResourceId) cls.newInstance();
|
||||
|
|
Loading…
Reference in a new issue