High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies
Go to file
Jake Potrebic 96f6033450 Clone mutables to prevent unexpected issues
There are lots of locations in the API where mutable
types are not cloned, either on return or when passed
as a parameter and assigned to a field, which can cause
unexpected behaviors. Let this be a lesson to use
immutable types for simple things Location, Vector, and
others.
2024-03-16 11:10:48 -07:00
paper-api Clone mutables to prevent unexpected issues 2024-03-16 11:10:48 -07:00