Additional fixes (paulevs/betternether#449)
This commit is contained in:
parent
0f66f11628
commit
aa2f0f5e8a
1 changed files with 6 additions and 0 deletions
|
@ -103,6 +103,12 @@ public class MigrationProfile {
|
||||||
final CompoundTag tag = (CompoundTag)items.get(idx);
|
final CompoundTag tag = (CompoundTag)items.get(idx);
|
||||||
if (tag.contains("Name") && tag.getString("Name").equals("minecraft:spawner"))
|
if (tag.contains("Name") && tag.getString("Name").equals("minecraft:spawner"))
|
||||||
spawnerIdx = idx;
|
spawnerIdx = idx;
|
||||||
|
if (tag.contains("Name") && (tag.getString("Name").equals("minecraft:") || tag.getString("Name").equals(""))){
|
||||||
|
System.out.println("Empty Name");
|
||||||
|
}
|
||||||
|
if (tag.contains("id") && (tag.getString("id").equals("minecraft:") || tag.getString("id").equals(""))){
|
||||||
|
System.out.println("Empty ID");
|
||||||
|
}
|
||||||
changed[0] |= profile.replaceStringFromIDs(tag, "Name");
|
changed[0] |= profile.replaceStringFromIDs(tag, "Name");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue