More minor patcher issue fixes

This commit is contained in:
Anuken 2025-10-22 07:19:57 -04:00
parent 386b0929d8
commit e7966fc6fd
3 changed files with 11 additions and 0 deletions

View file

@ -97,6 +97,14 @@ public abstract class UnlockableContent extends MappableContent{
uiIcon = Core.atlas.find(getContentType().name() + "-" + name + "-ui", fullIcon);
}
@Override
public void afterPatch(){
super.afterPatch();
//reset stats
stats = new Stats();
}
public boolean isBanned(){
return false;
}

View file

@ -702,6 +702,7 @@ public class Block extends UnlockableContent implements Senseable{
@Override
public void afterPatch(){
super.afterPatch();
barMap.clear();
setBars();
}

View file

@ -3,9 +3,11 @@ package mindustry.world.meta;
import arc.struct.ObjectMap.*;
import arc.struct.*;
import arc.util.*;
import mindustry.mod.*;
import mindustry.type.*;
/** Hold and organizes a list of block stats. */
@NoPatch
public class Stats{
/** Whether to display stats with categories. If false, categories are completely ignored during display. */
public boolean useCategories = false;