Bugfixes
This commit is contained in:
@@ -171,16 +171,14 @@ public class Conveyor extends Block implements Autotiler{
|
||||
@Override
|
||||
public void unitOn(Unit unit){
|
||||
|
||||
if(clogHeat > 0.5f){
|
||||
return;
|
||||
}
|
||||
if(clogHeat > 0.5f) return;
|
||||
|
||||
noSleep();
|
||||
|
||||
float mspeed = speed * tilesize * 55f;
|
||||
float centerSpeed = 0.1f;
|
||||
float centerDstScl = 3f;
|
||||
float tx = Geometry.d4[rotation].x, ty = Geometry.d4[rotation].y;
|
||||
float tx = Geometry.d4x[rotation], ty = Geometry.d4y[rotation];
|
||||
|
||||
float centerx = 0f, centery = 0f;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import arc.*;
|
||||
import arc.graphics.g2d.*;
|
||||
import arc.math.*;
|
||||
import arc.util.*;
|
||||
import arc.util.io.*;
|
||||
import mindustry.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.entities.*;
|
||||
@@ -187,5 +188,28 @@ public class Reconstructor extends UnitBlock{
|
||||
UnitType[] r = Structs.find(upgrades, arr -> arr[0] == type);
|
||||
return r == null ? null : r[1];
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte version(){
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(Writes write){
|
||||
super.write(write);
|
||||
|
||||
write.f(progress);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void read(Reads read, byte revision){
|
||||
super.read(read, revision);
|
||||
|
||||
if(revision == 1){
|
||||
progress = read.f();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user