Many new modding improvements

This commit is contained in:
Anuken
2020-08-22 14:05:41 -04:00
parent b128155615
commit ac21c620fe
17 changed files with 161 additions and 32 deletions

View File

@@ -178,7 +178,7 @@ public class Conveyor extends Block implements Autotiler{
float mspeed = speed * tilesize * 55f;
float centerSpeed = 0.1f;
float centerDstScl = 3f;
float tx = Geometry.d4x[rotation], ty = Geometry.d4y[rotation];
float tx = Geometry.d4x(rotation), ty = Geometry.d4y(rotation);
float centerx = 0f, centery = 0f;

View File

@@ -207,7 +207,6 @@ public class LogicBlock extends Block{
stream.readInt();
}
}else{
for(int i = 0; i < total; i++){
String name = stream.readUTF();
short x = stream.readShort(), y = stream.readShort();
@@ -290,6 +289,7 @@ public class LogicBlock extends Block{
}
asm.putConst("@links", executor.links.length);
asm.putConst("@ipt", instructionsPerTick);
//store any older variables
for(Var var : executor.vars){