mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-09 10:18:40 +07:00
Added addUpgrade method to Reconstructor to avoid dealing with array creation in Rhino JS (#5094)
This commit is contained in:
parent
c99b79762a
commit
aef7709764
@ -97,6 +97,10 @@ public class Reconstructor extends UnitBlock{
|
|||||||
super.init();
|
super.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void addUpgrade(UnitType from, UnitType to){
|
||||||
|
upgrades.add(new UnitType[]{from, to});
|
||||||
|
}
|
||||||
|
|
||||||
public class ReconstructorBuild extends UnitBuild{
|
public class ReconstructorBuild extends UnitBuild{
|
||||||
|
|
||||||
public float fraction(){
|
public float fraction(){
|
||||||
|
Loading…
Reference in New Issue
Block a user