9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-19 23:09:26 +00:00

rollback to previous config system; fix patches

This commit is contained in:
NONPLAYT
2025-01-16 02:42:17 +03:00
parent 568f501624
commit dbb184d8af
30 changed files with 827 additions and 820 deletions

View File

@@ -7,7 +7,7 @@
- Set<AttributeInstance> attributesToSync = ((LivingEntity)this.entity).getAttributes().getAttributesToSync();
+ // DivineMC start - Suppress errors from dirty attributes
+ Set<AttributeInstance> attributes = ((LivingEntity) this.entity).getAttributes().getAttributesToSync();
+ final Set<AttributeInstance> attributesToSync = this.level.divineConfig().optimizations.suppressErrorsFromDirtyAttributes ? Collections.synchronizedSet(attributes) : attributes;
+ final Set<AttributeInstance> attributesToSync = this.level.divinemcConfig.suppressErrorsFromDirtyAttributes ? Collections.synchronizedSet(attributes) : attributes;
+ // DivineMC end - Suppress errors from dirty attributes
if (!attributesToSync.isEmpty()) {
// CraftBukkit start - Send scaled max health