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
|
||||
public NBTTagCompound fixTagCompound(NBTTagCompound compound) {
|
||||
ResourceLocation tileEntityLocation = new ResourceLocation(compound.getString("id"));
|
||||
Optional<ModTileEntities> tileData = getFromOldName(tileEntityLocation.getResourcePath());
|
||||
tileData.ifPresent(modTileEntities -> compound.setString("id", modTileEntities.name.toString()));
|
||||
if(tileEntityLocation.getResourceDomain().equalsIgnoreCase("minecraft")){
|
||||
Optional<ModTileEntities> tileData = getFromOldName(tileEntityLocation.getResourcePath());
|
||||
tileData.ifPresent(modTileEntities -> compound.setString("id", modTileEntities.name.toString()));
|
||||
}
|
||||
return compound;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue