Make a backup of your world
GeckoLib dependency is no longer required.
Load your Minecraft map with PTM2. Then close it and then optimize the world. Select the world -> edit -> optimize -> check 'Erase cached data' -> optimize.
If electric wires and/or rails are facing the wrong way -> right click on them with a technical wrench.
Some signs might be facing the wrong way and the text will be missing -> manually replace the sign.
Optical/graphical bugs/glitches are cause by Optifine's anistropic filtering and/or fast rendering option.