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);
|
uiIcon = Core.atlas.find(getContentType().name() + "-" + name + "-ui", fullIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void afterPatch(){
|
||||||
|
super.afterPatch();
|
||||||
|
|
||||||
|
//reset stats
|
||||||
|
stats = new Stats();
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isBanned(){
|
public boolean isBanned(){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -702,6 +702,7 @@ public class Block extends UnlockableContent implements Senseable{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterPatch(){
|
public void afterPatch(){
|
||||||
|
super.afterPatch();
|
||||||
barMap.clear();
|
barMap.clear();
|
||||||
setBars();
|
setBars();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,11 @@ package mindustry.world.meta;
|
||||||
import arc.struct.ObjectMap.*;
|
import arc.struct.ObjectMap.*;
|
||||||
import arc.struct.*;
|
import arc.struct.*;
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
|
import mindustry.mod.*;
|
||||||
import mindustry.type.*;
|
import mindustry.type.*;
|
||||||
|
|
||||||
/** Hold and organizes a list of block stats. */
|
/** Hold and organizes a list of block stats. */
|
||||||
|
@NoPatch
|
||||||
public class Stats{
|
public class Stats{
|
||||||
/** Whether to display stats with categories. If false, categories are completely ignored during display. */
|
/** Whether to display stats with categories. If false, categories are completely ignored during display. */
|
||||||
public boolean useCategories = false;
|
public boolean useCategories = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue