mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
Fix remove unit repair api not working
This commit is contained in:
parent
2e7a9a8bd1
commit
4917a57dfa
1 changed files with 5 additions and 4 deletions
|
|
@ -117,9 +117,10 @@ public class UnitRepairApi {
|
||||||
String repairableName = repairable.name();
|
String repairableName = repairable.name();
|
||||||
|
|
||||||
FileConfiguration config = ConfigHolder.UNIT_REPAIR_HOLDER.getConfig();
|
FileConfiguration config = ConfigHolder.UNIT_REPAIR_HOLDER.getConfig();
|
||||||
config.set(unitName.toLowerCase() + repairableName.toUpperCase(), null);
|
config.set(unitName.toLowerCase() + "." + repairableName.toUpperCase(), null);
|
||||||
config.set(unitName.toUpperCase() + repairableName.toLowerCase(), null);
|
config.set(unitName.toUpperCase() + "." + repairableName.toLowerCase(), null);
|
||||||
config.set(unitName.toUpperCase() + repairableName.toUpperCase(), null);
|
config.set(unitName.toUpperCase() + "." + repairableName.toUpperCase(), null);
|
||||||
|
config.set(unitName.toLowerCase() + "." + repairableName.toLowerCase(), null);
|
||||||
|
|
||||||
// Test if it was the last value of this section
|
// Test if it was the last value of this section
|
||||||
boolean lastValue = false;
|
boolean lastValue = false;
|
||||||
|
|
@ -142,7 +143,7 @@ public class UnitRepairApi {
|
||||||
|
|
||||||
|
|
||||||
// We only need to "delete" as the lower case to be counted as deleted
|
// We only need to "delete" as the lower case to be counted as deleted
|
||||||
ConfigHolder.UNIT_REPAIR_HOLDER.delete(unitName.toLowerCase() + repairableName.toLowerCase());
|
ConfigHolder.UNIT_REPAIR_HOLDER.delete(unitName.toLowerCase() + "." + repairableName.toLowerCase());
|
||||||
prepareSaveTask();
|
prepareSaveTask();
|
||||||
|
|
||||||
// Remove from gui
|
// Remove from gui
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue