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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user