Fixed dropping items into enemy blocks

This commit is contained in:
Anuken
2018-08-27 13:56:20 -04:00
parent d8f9059989
commit 28c13c8e52
2 changed files with 2 additions and 2 deletions

View File

@@ -302,7 +302,7 @@ public abstract class InputHandler extends InputAdapter{
ItemStack stack = player.inventory.getItem();
if(tile.block().acceptStack(stack.item, stack.amount, tile, player) > 0 && tile.block().hasItems){
if(tile.block().acceptStack(stack.item, stack.amount, tile, player) > 0 && tile.getTeam() == player.getTeam() && tile.block().hasItems){
Call.transferInventory(player, tile);
}else{
Call.dropItem(player.angleTo(x, y));