Refactor registries to entirely use the platform

This commit is contained in:
Matthew Miller
2019-02-16 19:35:13 +10:00
parent 1b101740fe
commit db1315e043
12 changed files with 1695 additions and 1666 deletions

View File

@ -129,14 +129,14 @@ public class ForgeWorldEdit {
for (ResourceLocation name : Block.REGISTRY.getKeys()) {
String nameStr = name.toString();
if (!BlockType.REGISTRY.keySet().contains(nameStr)) {
BlockTypes.register(new BlockType(nameStr));
BlockType.REGISTRY.register(nameStr, new BlockType(nameStr));
}
}
for (ResourceLocation name : Item.REGISTRY.getKeys()) {
String nameStr = name.toString();
if (!ItemType.REGISTRY.keySet().contains(nameStr)) {
ItemTypes.register(new ItemType(nameStr));
ItemType.REGISTRY.register(nameStr, new ItemType(nameStr));
}
}
}