mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
More minor patcher issue fixes
This commit is contained in:
parent
386b0929d8
commit
e7966fc6fd
3 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue