only check tiles on the minecraft resource domain, should be a bit quicker
This commit is contained in:
parent
6bc73adc35
commit
874b08e919
1 changed files with 4 additions and 2 deletions
|
@ -143,8 +143,10 @@ public enum ModTileEntities {
|
||||||
@Override
|
@Override
|
||||||
public NBTTagCompound fixTagCompound(NBTTagCompound compound) {
|
public NBTTagCompound fixTagCompound(NBTTagCompound compound) {
|
||||||
ResourceLocation tileEntityLocation = new ResourceLocation(compound.getString("id"));
|
ResourceLocation tileEntityLocation = new ResourceLocation(compound.getString("id"));
|
||||||
|
if(tileEntityLocation.getResourceDomain().equalsIgnoreCase("minecraft")){
|
||||||
Optional<ModTileEntities> tileData = getFromOldName(tileEntityLocation.getResourcePath());
|
Optional<ModTileEntities> tileData = getFromOldName(tileEntityLocation.getResourcePath());
|
||||||
tileData.ifPresent(modTileEntities -> compound.setString("id", modTileEntities.name.toString()));
|
tileData.ifPresent(modTileEntities -> compound.setString("id", modTileEntities.name.toString()));
|
||||||
|
}
|
||||||
return compound;
|
return compound;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue