Implemented #5851 properly
This commit is contained in:
@@ -896,7 +896,7 @@ public class NetServer implements ApplicationListener{
|
|||||||
}
|
}
|
||||||
|
|
||||||
String fixName(String name){
|
String fixName(String name){
|
||||||
name = name.trim();
|
name = name.trim().replace("\n", "").replace("\t", "");
|
||||||
if(name.equals("[") || name.equals("]")){
|
if(name.equals("[") || name.equals("]")){
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ public class Block extends UnlockableContent{
|
|||||||
stats.add(Stat.health, health, StatUnit.none);
|
stats.add(Stat.health, health, StatUnit.none);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(canBeBuilt()){
|
if(canBeBuilt() && requirements.length > 0){
|
||||||
stats.add(Stat.buildTime, buildCost / 60, StatUnit.seconds);
|
stats.add(Stat.buildTime, buildCost / 60, StatUnit.seconds);
|
||||||
stats.add(Stat.buildCost, StatValues.items(false, requirements));
|
stats.add(Stat.buildCost, StatValues.items(false, requirements));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user