Update to new forge registry system

This commit is contained in:
modmuss50 2016-05-08 10:13:21 +01:00
parent c9f84375ac
commit 9c6e9aef64
5 changed files with 96 additions and 80 deletions

View file

@ -60,7 +60,7 @@ public class JsonGenerator {
for(Object object : RebornCore.jsonDestroyer.objectsToDestroy){
if(object instanceof BlockMachineBase){
BlockMachineBase base = (BlockMachineBase) object;
String name = GameData.getBlockRegistry().getNameForObject(base).getResourcePath().replace("tile.techreborn.", "");
String name = base.getRegistryName().getResourcePath().replace("tile.techreborn.", "");
File state = new File(blockstates, name + ".json");
if(state.exists()){
state.delete();