Looks like more modern version trickery. Try replacing that block with this instead.
Lua Code:
-- Move nametag
hooksecurefunc("DefaultCompactNamePlateFrameAnchorInternal",function(frame)
frame.name:ClearAllPoints();-- Clear nametag anchors
PixelUtil.SetPoint(frame.name,"BOTTOM",frame.healthBar,"TOP",0,4);-- Set new anchor
end);
Note: Since the original function uses
PixelUtil.SetPoint() to set its position agnostic to scaling. I believe it should be used here too.