
'Potentially Dangerous alternative prefix'
LemADEC opened this issue · 5 comments
As of Overlord-1.12.2-2.4.10, forge is reporting warnings in the console
[10:44:04] [Server thread/WARN] [FML]: Potentially Dangerous alternative prefix `minecraft` for name `skeleton_maker`, expected `overlord`. This could be a intended override, but in most cases indicates a broken mod.
[10:44:04] [Server thread/WARN] [FML]: Potentially Dangerous alternative prefix `minecraft` for name `baby_skeleton_maker`, expected `overlord`. This could be a intended override, but in most cases indicates a broken mod.
I've found the issue, and unfortunately, if I fix this, it will wipe the inventories of all skeleton makers and baby skeleton makers in the world. This will be fixed in the update to 1.13, when backwards compatibility with existing worlds doesn't matter nearly as much.
There used to be a GameRegistry.addSubstitutionAlias() but now you just register your TileEntity twice (under the new and old name). I'm not sure if you need to convert it yourself to the new id (remove tile entity and readd it properly) or if it'll do it automatically for you.
You can also use the modern API: https://github.com/sinkillerj/ProjectE/blob/mc1.12.x/src/main/java/moze_intel/projecte/fixes/TENameFix.java