mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-26 07:20:51 -07:00
Fixed #5548
This commit is contained in:
parent
017552f573
commit
0ba26b22c0
2 changed files with 3 additions and 3 deletions
|
|
@ -98,7 +98,7 @@ public class AssetsProcess extends BaseProcessor{
|
|||
});
|
||||
|
||||
for(Element elem : elements){
|
||||
Seq.with(((TypeElement)elem).getEnclosedElements()).each(e -> e.getKind() == ElementKind.FIELD, field -> {
|
||||
Seq.with(elem.getEnclosedElements()).each(e -> e.getKind() == ElementKind.FIELD, field -> {
|
||||
String fname = field.getSimpleName().toString();
|
||||
if(fname.startsWith("default")){
|
||||
loadStyles.addStatement("arc.Core.scene.addStyle(" + field.asType().toString() + ".class, mindustry.ui.Styles." + fname + ")");
|
||||
|
|
@ -124,7 +124,7 @@ public class AssetsProcess extends BaseProcessor{
|
|||
String name = p.nameWithoutExtension();
|
||||
|
||||
if(names.contains(name)){
|
||||
BaseProcessor.err("Duplicate file name: " + p.toString() + "!");
|
||||
BaseProcessor.err("Duplicate file name: " + p + "!");
|
||||
}else{
|
||||
names.add(name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ public class LiquidTurret extends Turret{
|
|||
|
||||
@Override
|
||||
public boolean shouldActiveSound(){
|
||||
return wasShooting;
|
||||
return wasShooting && enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue