mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-28 21:57:51 +07:00
Fixed #5548
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user