Fixed #2567
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user