More minor patcher issue fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -702,6 +702,7 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
|
||||
@Override
|
||||
public void afterPatch(){
|
||||
super.afterPatch();
|
||||
barMap.clear();
|
||||
setBars();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user