onItemRightClick is called twice

This function needs to make sure the world is local before running, otherwise it causes the ring to be activated twice. I have seen this cause synchronization errors where rings are permanently enabled until the player relogs.