centralize all ModConfig.SERVER reads through SettingsAccessor
No more direct ModConfig.SERVER access outside SettingsAccessor. 32 new accessor methods, 21 consumer files rerouted.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.tiedup.remake.entities.kidnapper.components;
|
||||
|
||||
import com.tiedup.remake.cells.CellDataV2;
|
||||
import com.tiedup.remake.core.ModConfig;
|
||||
import com.tiedup.remake.core.SettingsAccessor;
|
||||
import com.tiedup.remake.core.TiedUpMod;
|
||||
import com.tiedup.remake.dialogue.EntityDialogueManager;
|
||||
import com.tiedup.remake.entities.EntityKidnapper;
|
||||
@@ -628,7 +628,7 @@ public class KidnapperCaptiveManager {
|
||||
|
||||
// Apply blindfold if enabled in config
|
||||
if (
|
||||
com.tiedup.remake.core.ModConfig.SERVER.abandonKeepsBlindfold.get()
|
||||
SettingsAccessor.isAbandonKeepsBlindfold()
|
||||
) {
|
||||
net.minecraft.world.item.ItemStack blindfold = getBlindfoldItem();
|
||||
if (
|
||||
@@ -652,7 +652,7 @@ public class KidnapperCaptiveManager {
|
||||
|
||||
// Remove restraints if NOT configured to keep them
|
||||
boolean keepBinds =
|
||||
com.tiedup.remake.core.ModConfig.SERVER.abandonKeepsBinds.get();
|
||||
SettingsAccessor.isAbandonKeepsBinds();
|
||||
if (!keepBinds) {
|
||||
// Full release including binds
|
||||
this.currentCaptive.untie(true);
|
||||
|
||||
Reference in New Issue
Block a user