Fixed non-even assembler modules not working

This commit is contained in:
Anuken
2023-06-19 19:42:54 -04:00
parent 6ba1cd3ef6
commit 2008cf6387

View File

@@ -241,8 +241,8 @@ public class UnitAssembler extends PayloadBlock{
public boolean moduleFits(Block other, float ox, float oy, int rotation){
float
dx = ox + Geometry.d4x(rotation) * (other.size/2 + 1) * tilesize,
dy = oy + Geometry.d4y(rotation) * (other.size/2 + 1) * tilesize;
dx = ox + Geometry.d4x(rotation) * (other.size/2f + 0.5f) * tilesize,
dy = oy + Geometry.d4y(rotation) * (other.size/2f + 0.5f) * tilesize;
Vec2 spawn = getUnitSpawn();