Update to new forge registry system
This commit is contained in:
parent
c9f84375ac
commit
9c6e9aef64
5 changed files with 96 additions and 80 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue