Fix concurrency issues in DataFixers

We are seeing issues with DataFixers being not thread safe in async chunks
and even in some spigot packet sending code.

There are a few more global objects that are mutated that need to
be synchronized to be safe for use over multiple threads.

There may be more cases, but these are extremely obvious ones.
This commit is contained in:
Aikar 2018-09-03 22:36:41 -04:00
parent f90c38b8f5
commit d01d2d8cc5
No known key found for this signature in database
GPG key ID: 401ADFC9891FAAFE
2 changed files with 129 additions and 1 deletions

View file

@ -84,7 +84,11 @@ for f in $files; do
done
# Import Libraries - these must always be mapped manually, no automatic stuff
# group lib prefix files
importLibrary com.mojang datafixerupper com/mojang/datafixers \
schemas/Schema.java \
DataFixerUpper.java \
types/families/RecursiveTypeFamily.java
# Temporarily add new NMS dev imports here before you run paper patch