Fixed #3834 / Fixed #3835 / Fixed #3837

This commit is contained in:
Anuken
2020-12-07 11:10:19 -05:00
parent 5e0ba2f4af
commit 557cb1c532
6 changed files with 25 additions and 4 deletions

View File

@@ -278,8 +278,10 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
throw new ValidateException(player, "Player cannot drop an item.");
}
Fx.dropItem.at(player.x, player.y, angle, Color.white, player.unit().item());
player.unit().clearItem();
player.unit().eachGroup(unit -> {
Fx.dropItem.at(unit.x, unit.y, angle, Color.white, unit.item());
unit.clearItem();
});
}
@Remote(targets = Loc.both, called = Loc.server, forward = true, unreliable = true)