This commit is contained in:
Anuken 2020-09-16 12:56:32 -04:00
parent ddcfd0728d
commit 47b4da59e0
3 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -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 -> {

View file

@ -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