Commit graph

6 commits

Author SHA1 Message Date
CheaterCodes
bf575bf013
Merge branch '1.16' into dynregman 2020-10-01 22:54:51 +02:00
shartte
7490af87a1
Make BuiltInRegistries safe for Worldgen Registration during Mod Initialization (#1052)
* Adds a synchronisation for entries in BuiltInRegistries to the built-in DynamicRegistryManager, to a void class-loading DynamicRegistryManager during Mod initialization from messing up the Worldgen registrations of subsequently loaded mods.

* Changed to use updated Yarn mappings.
2020-09-18 18:10:47 +01:00
CheaterCodes
5610e94af4 Changed the event to a more generic one 2020-09-13 13:02:21 +02:00
CheaterCodes
e9c7de9661 Added DynamicRegistryEntryAddedCallback 2020-09-13 13:02:21 +02:00
modmuss50
fcdfdfa1c7 Fix server crash, closes #1058 2020-09-03 23:44:31 +01:00
modmuss50
dd263cca8b
Fix some known issues with the registry sync module. (#525)
* Try to detect if a registry is modded, if its not it will left alone and no syncing or saving will take place.

* Some more work on moddable registries

* Checkstyle

* Fix licences

* Cleanup registry attributes

* Rework again

* Some small tweaks

* Yet another refactor

* Some minor style fixes

* Finish checking registries

* Start on a test mod, and apply some fixes.

* Checkstyle fixes

* Tweak the logic behind previously modded registries

* Use EnumSet

* Update fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/mixin/registry/sync/MixinRegistry.java

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Fix generics, add javadoc, add tests

* More changes

* Checkstyle fixes

* Minor fixes

* Remove hash stuff

* 20w21a - massive changes

* fix build

* Update fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/FabricRegistryBuilder.java

Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>

* Feedback and update mappings

* No longer apply mappings to vanilla registries, no longer save empty mapping data.

* Use Identifier in FabricRegistryBuilder over RegistryKey
Improve empty registry tag handling

* Reorder toTag empty checks

* Minor fixes

* Make FabricRegistryBuilder final

* Update registry attributes

* Fix compile issue

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
Co-authored-by: Player <player@player.to>
2020-06-04 21:33:56 +01:00