mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-05-01 01:32:04 -07:00
Fixed #2567
This commit is contained in:
parent
ddcfd0728d
commit
47b4da59e0
3 changed files with 4 additions and 2 deletions
|
|
@ -46,6 +46,8 @@ public class EditorTile extends Tile{
|
|||
return;
|
||||
}
|
||||
|
||||
if(this.block == type && (build == null || build.rotation == rotation)) return;
|
||||
|
||||
if(rotation != 0) op(OpType.rotation, (byte)rotation);
|
||||
if(team() != Team.derelict) op(OpType.team, (byte)team().id);
|
||||
op(OpType.block, block.id);
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
|
||||
@Remote(targets = Loc.both, forward = true, called = Loc.server)
|
||||
public static void transferInventory(Player player, Building tile){
|
||||
if(player == null || tile == null || !player.within(tile, buildingRange)) return;
|
||||
if(player == null || tile == null || !player.within(tile, buildingRange) || tile.items == null) return;
|
||||
|
||||
if(net.server() && (player.unit().stack.amount <= 0 || !Units.canInteract(player, tile) ||
|
||||
!netServer.admins.allowAction(player, ActionType.depositItem, tile.tile, action -> {
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ public class Reconstructor extends UnitBlock{
|
|||
if(moveInPayload()){
|
||||
if(consValid()){
|
||||
valid = true;
|
||||
progress += edelta();
|
||||
progress += edelta() * state.rules.unitBuildSpeedMultiplier;
|
||||
}
|
||||
|
||||
//upgrade the unit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue