Skip to content

Commit

Permalink
@config sense for cloners
Browse files Browse the repository at this point in the history
  • Loading branch information
sk7725 committed Jan 19, 2021
1 parent 94cbce3 commit 4084ea6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/betamindy/world/blocks/production/BlockCloner.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import mindustry.Vars;
import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.logic.LAccess;
import mindustry.type.Item;
import mindustry.type.ItemStack;
import mindustry.ui.*;
Expand Down Expand Up @@ -189,5 +190,13 @@ public void read(Reads read, byte revision){
super.read(read, revision);
progress = read.f();
}

@Override
public Object senseObject(LAccess sensor) {
switch(sensor){
case config: return recipe;
default: return super.senseObject(sensor);
}
}
}
}

0 comments on commit 4084ea6

Please sign in to comment.