Switching modifier from beta to release

This commit is contained in:
Anuken
2020-11-28 13:57:19 -05:00
parent 98206446e6
commit e6544b73db
5 changed files with 6 additions and 6 deletions

View File

@@ -247,7 +247,7 @@ public class Mods implements Loadable{
mods.add(mod);
}catch(Throwable e){
if(e instanceof ClassNotFoundException && e.getMessage().contains("mindustry.plugin.Plugin")){
Log.info("Plugin @ is outdated and needs to be ported to 6.0! Update its main class to inherit from 'mindustry.mod.Plugin'.");
Log.info("Plugin @ is outdated and needs to be ported to 6.0! Update its main class to inherit from 'mindustry.mod.Plugin'. See https://mindustrygame.github.io/wiki/modding/6-migrationv6/");
}else{
Log.err("Failed to load mod file @. Skipping.", file);
Log.err(e);

View File

@@ -13,7 +13,7 @@ import mindustry.io.*;
public class Weapon{
/** displayed weapon region */
public String name;
public String name = "";
/** bullet shot */
public BulletType bullet;
/** shell ejection effect */

View File

@@ -21,7 +21,7 @@ public class WeaponListValue implements StatValue{
@Override
public void display(Table table){
table.row();
for(int i = 0;i < weapons.size;i ++){
for(int i = 0; i < weapons.size;i ++){
Weapon weapon = weapons.get(i);
if(weapon.flipSprite){
@@ -29,7 +29,7 @@ public class WeaponListValue implements StatValue{
continue;
}
TextureRegion region = weapon.outlineRegion.found() ? weapon.outlineRegion : unit.icon(Cicon.full);
TextureRegion region = !weapon.name.equals("") && weapon.outlineRegion.found() ? weapon.outlineRegion : unit.icon(Cicon.full);
table.image(region).size(60).scaling(Scaling.bounded).right().top();