I have a problem on my server where players will make nether portals on the overworld and the nether side will form past the border, kicking them to the nether's spawn. If /wb bypass is enabled for that player, the portal forms in the spot it normally should. Would your code be affecting where portals form?