GTNewHorizons / ServerUtilities

GNU Lesser General Public License v3.0
29 stars 13 forks source link

Fix grief protection failing to apply under certain circumstances #73

Closed Lyfts closed 4 months ago

Lyfts commented 4 months ago

Raytracing has a tendency to return null and since we only need to raytrace for the RIGHT_CLICK_AIR action, as it's coordinates are always 0, 0, 0, the other actions have been changed back to use the event coordinates. In case the raytrace returns null for RIGHT_CLICK_AIR the player's coordinates will be used instead.

Closes https://github.com/GTNewHorizons/ServerUtilities/issues/72