This commit is contained in:
Anuken
2019-08-07 18:16:51 -04:00
parent 2d504521b1
commit 703f034054
3 changed files with 4 additions and 4 deletions

View File

@@ -984,7 +984,7 @@ block.liquid-tank.description = Stores a large amount of liquids. Use for creati
block.liquid-junction.description = Acts as a bridge for two crossing conduits. Useful in situations with two different conduits carrying different liquids to different locations. block.liquid-junction.description = Acts as a bridge for two crossing conduits. Useful in situations with two different conduits carrying different liquids to different locations.
block.bridge-conduit.description = Advanced liquid transport block. Allows transporting liquids over up to 3 tiles of any terrain or building. block.bridge-conduit.description = Advanced liquid transport block. Allows transporting liquids over up to 3 tiles of any terrain or building.
block.phase-conduit.description = Advanced liquid transport block. Uses power to teleport liquids to a connected phase conduit over several tiles. block.phase-conduit.description = Advanced liquid transport block. Uses power to teleport liquids to a connected phase conduit over several tiles.
block.power-node.description = Transmits power to connected nodes. Up to four power sources, sinks or nodes can be connected. The node will receive power from or supply power to any adjacent blocks. block.power-node.description = Transmits power to connected nodes. The node will receive power from or supply power to any adjacent blocks.
block.power-node-large.description = An advanced power node with greater range and more connections. block.power-node-large.description = An advanced power node with greater range and more connections.
block.surge-tower.description = An extremely long-range power node with fewer available connections. block.surge-tower.description = An extremely long-range power node with fewer available connections.
block.battery.description = Stores power as a buffer in times of surplus energy. Outputs power in times of deficit. block.battery.description = Stores power as a buffer in times of surplus energy. Outputs power in times of deficit.

View File

@@ -155,7 +155,6 @@ public class MobileInput extends InputHandler implements GestureListener{
return req; return req;
} }
}else{ }else{
r1.setSize(other.block().size * tilesize); r1.setSize(other.block().size * tilesize);
r1.setCenter(other.worldx() + other.block().offset(), other.worldy() + other.block().offset()); r1.setCenter(other.worldx() + other.block().offset(), other.worldy() + other.block().offset());
@@ -248,7 +247,7 @@ public class MobileInput extends InputHandler implements GestureListener{
/** Draws a placement icon for a specific block. */ /** Draws a placement icon for a specific block. */
void drawPlace(int x, int y, Block block, int rotation, int prevX, int prevY, int prevRotation){ void drawPlace(int x, int y, Block block, int rotation, int prevX, int prevY, int prevRotation){
if(validPlace(x, y, block, rotation)){ if(validPlace(x, y, block, rotation) && !checkOverlapPlacement(x, y, block)){
block.getPlaceDraw(placeDraw, rotation, prevX, prevY, prevRotation); block.getPlaceDraw(placeDraw, rotation, prevX, prevY, prevRotation);
Draw.color(); Draw.color();
@@ -509,7 +508,7 @@ public class MobileInput extends InputHandler implements GestureListener{
if(mode == placing && isPlacing()){ if(mode == placing && isPlacing()){
iterateLine(lineStartX, lineStartY, tileX, tileY, l -> { iterateLine(lineStartX, lineStartY, tileX, tileY, l -> {
Tile tile = world.tile(l.x, l.y); Tile tile = world.tile(l.x, l.y);
if(tile != null && hasRequest(tile)){ if(tile != null && checkOverlapPlacement(tile.x, tile.y, block)){
return; return;
} }

View File

@@ -35,6 +35,7 @@ if(!hasProperty("release")){
use(':Arc:backends:backend-robovm') use(':Arc:backends:backend-robovm')
use(':Arc:backends:backend-headless') use(':Arc:backends:backend-headless')
} }
if(new File(settingsDir, '../debug').exists()){ if(new File(settingsDir, '../debug').exists()){
use(':debug') use(':debug')
} }