Merge pull request #2611 from hea3ven/6.4.x

fix an error when loading robot resources
This commit is contained in:
Adrian Siekierka 2015-04-03 20:04:14 +02:00
commit 1e4b647331

View file

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