Removed unnecessary TODOs
This commit is contained in:
@@ -70,8 +70,6 @@ public class JsonIO{
|
||||
json.setElementType(Rules.class, "spawns", SpawnGroup.class);
|
||||
json.setElementType(Rules.class, "loadout", ItemStack.class);
|
||||
|
||||
//TODO this is terrible
|
||||
|
||||
json.setSerializer(Sector.class, new Serializer<>(){
|
||||
@Override
|
||||
public void write(Json json, Sector object, Class knownType){
|
||||
|
||||
@@ -4,7 +4,6 @@ import arc.*;
|
||||
import arc.math.geom.*;
|
||||
import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import arc.util.noise.*;
|
||||
import mindustry.*;
|
||||
import mindustry.ai.types.*;
|
||||
import mindustry.content.*;
|
||||
@@ -538,7 +537,7 @@ public class LExecutor{
|
||||
public void run(LExecutor exec){
|
||||
Object obj = exec.obj(target);
|
||||
if(obj instanceof Building b && b.team == exec.team && exec.linkIds.contains(b.id)){
|
||||
if(type.isObj && exec.var(p1).isobj){ //TODO may break logic?
|
||||
if(type.isObj && exec.var(p1).isobj){
|
||||
b.control(type, exec.obj(p1), exec.num(p2), exec.num(p3), exec.num(p4));
|
||||
}else{
|
||||
b.control(type, exec.num(p1), exec.num(p2), exec.num(p3), exec.num(p4));
|
||||
@@ -765,7 +764,6 @@ public class LExecutor{
|
||||
Var v = exec.var(to);
|
||||
Var f = exec.var(from);
|
||||
|
||||
//TODO error out when the from-value is a constant
|
||||
if(!v.constant){
|
||||
if(f.isobj){
|
||||
v.objval = f.objval;
|
||||
|
||||
@@ -61,7 +61,6 @@ public class Administration{
|
||||
});
|
||||
|
||||
//block interaction rate limit
|
||||
//TODO when someone disconnects, a different player is mistakenly kicked for spamming actions
|
||||
addActionFilter(action -> {
|
||||
if(action.type != ActionType.breakBlock &&
|
||||
action.type != ActionType.placeBlock &&
|
||||
|
||||
@@ -33,7 +33,6 @@ public class ParticleWeather extends Weather{
|
||||
region = Core.atlas.find(particleRegion);
|
||||
|
||||
//load noise texture
|
||||
//TODO mod support
|
||||
if(drawNoise && Core.assets != null){
|
||||
Core.assets.load("sprites/" + noisePath + ".png", Texture.class);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,6 @@ public class KeybindDialog extends Dialog{
|
||||
}
|
||||
|
||||
if(sections.length != 1){
|
||||
//TODO toggle style
|
||||
TextButton button = new TextButton(bundle.get("section." + section.name + ".name", Strings.capitalize(section.name))/*, "toggle"*/);
|
||||
if(section.equals(this.section))
|
||||
button.toggle();
|
||||
|
||||
@@ -324,7 +324,6 @@ public class ModsDialog extends BaseDialog{
|
||||
if(showImport) dialog.buttons.button("@mods.browser.reinstall", Icon.download, () -> githubImportMod(mod.getRepo(), mod.isJava()));
|
||||
}
|
||||
|
||||
//TODO improve this menu later
|
||||
dialog.cont.pane(desc -> {
|
||||
desc.center();
|
||||
desc.defaults().padTop(10).left();
|
||||
|
||||
@@ -240,7 +240,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
dialog.add("@sectors.captured");
|
||||
}
|
||||
|
||||
//TODO
|
||||
//TODO unimplemented, cutscene needed
|
||||
public void showPlanetLaunch(Sector sector, Cons<Sector> listener){
|
||||
selected = null;
|
||||
hovered = null;
|
||||
|
||||
@@ -8,7 +8,6 @@ import arc.util.*;
|
||||
import mindustry.world.*;
|
||||
import mindustry.world.blocks.production.GenericCrafter.*;
|
||||
|
||||
//TODO
|
||||
public class DrawArcSmelter extends DrawBlock{
|
||||
public TextureRegion top, bottom;
|
||||
public Color flameColor = Color.valueOf("f58349"), midColor = Color.valueOf("f2d585");
|
||||
|
||||
Reference in New Issue
Block a user