mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-25 01:21:26 +01:00
Actually use the force-enable-recipe option from the config
This commit is contained in:
parent
23d92fac63
commit
c06dda886d
@ -538,7 +538,7 @@ public class Settings implements net.ess3.api.ISettings {
|
|||||||
isCompassTowardsHomePerm = _isCompassTowardsHomePerm();
|
isCompassTowardsHomePerm = _isCompassTowardsHomePerm();
|
||||||
isAllowWorldInBroadcastworld = _isAllowWorldInBroadcastworld();
|
isAllowWorldInBroadcastworld = _isAllowWorldInBroadcastworld();
|
||||||
itemDbType = _getItemDbType();
|
itemDbType = _getItemDbType();
|
||||||
forceEnableRecipe = _isForceEnableRecipe();
|
forceEnableRecipe = config.getBoolean("force-enable-recipe", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Material> itemSpawnBl = new ArrayList<Material>();
|
private List<Material> itemSpawnBl = new ArrayList<Material>();
|
||||||
@ -1482,12 +1482,8 @@ public class Settings implements net.ess3.api.ISettings {
|
|||||||
|
|
||||||
private boolean forceEnableRecipe; // https://github.com/EssentialsX/Essentials/issues/1397
|
private boolean forceEnableRecipe; // https://github.com/EssentialsX/Essentials/issues/1397
|
||||||
|
|
||||||
private boolean _isForceEnableRecipe() {
|
|
||||||
return config.getBoolean("force-enable-recipe", false);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isForceEnableRecipe() {
|
public boolean isForceEnableRecipe() {
|
||||||
return false;
|
return forceEnableRecipe;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user