Fixed assembly modules yeeting into obstruction

This commit is contained in:
Anuken
2021-12-20 15:31:50 -05:00
parent 6f67ea1742
commit f8b360bca6
3 changed files with 4 additions and 3 deletions

View File

@@ -1530,12 +1530,13 @@ public class Blocks{
requirements(Category.effect, with(Items.silicon, 60, Items.tungsten, 60, Items.oxide, 40));
outlineColor = Pal.darkOutline;
consumes.power(3f);
range = 120f;
range = 150f;
size = 3;
buildSpeed = 1.5f;
}};
//TODO green looks bad switch to orange
//TODO orange also looks bad hhhh
regenProjector = new RegenProjector("regen-projector"){{
requirements(Category.effect, with(Items.silicon, 60, Items.tungsten, 60, Items.oxide, 40));
size = 3;

View File

@@ -128,7 +128,7 @@ public class UnitAssemblerModule extends PayloadBlock{
findLink();
}
if(moveInPayload() && link != null && link.moduleFits(block, x, y, rotation) && link.acceptPayload(this, payload) && consValid()){
if(moveInPayload() && link != null && link.moduleFits(block, x, y, rotation) && !link.wasOccupied && link.acceptPayload(this, payload) && consValid()){
link.yeetPayload(payload);
payload = null;
}