New ItemTransfer entity

This commit is contained in:
Anuken
2018-05-21 11:25:41 -04:00
parent 468a6c1dca
commit 8f137eadf0
3 changed files with 34 additions and 7 deletions

View File

@@ -108,7 +108,7 @@ public abstract class InputHandler extends InputAdapter{
ItemTransfer.create(stack.item,
player.x + Angles.trnsx(rotation + 180f, backTrns), player.y + Angles.trnsy(rotation + 180f, backTrns),
tile.drawx() + stackTrns.x, tile.drawy() + stackTrns.y, () -> {
new Translator(tile.drawx() + stackTrns.x, tile.drawy() + stackTrns.y), () -> {
tile.block().handleStack(stack.item, removed, tile, player);
remaining[1] -= removed;