This commit is contained in:
Anuken
2022-11-13 09:35:48 -05:00
parent 7d695784d1
commit 4c51b97667
34 changed files with 266 additions and 257 deletions

View File

@@ -171,8 +171,7 @@ abstract class PayloadComp implements Posc, Rotc, Hitboxc, Unitc{
int tx = World.toTile(x - tile.block.offset), ty = World.toTile(y - tile.block.offset);
Tile on = Vars.world.tile(tx, ty);
if(on != null && Build.validPlace(tile.block, tile.team, tx, ty, tile.rotation, false)){
int rot = (int)((rotation + 45f) / 90f) % 4;
payload.place(on, rot);
payload.place(on, tile.rotation);
Events.fire(new PayloadDropEvent(self(), tile));
if(getControllerName() != null){