Fix crash when non-players dig or place nodes