Remove inventory clear in any case (#553)

Before this change, the inventory was cleared in any case even if inventory clear is set to false in configuration
This commit is contained in:
DarkRails 2019-02-16 20:43:39 +01:00 committed by tastybento
parent 3aefdc449d
commit 781676a90f

View File

@ -74,8 +74,6 @@ public class IslandTeamInviteAcceptCommand extends ConfirmableCommand {
Island island = getIslands().getIsland(getWorld(), playerUUID);
// Get the team's island
Island teamIsland = getIslands().getIsland(getWorld(), prospectiveOwnerUUID);
// Clear the player's inventory
user.getInventory().clear();
// Move player to team's island
User prospectiveOwner = User.getInstance(prospectiveOwnerUUID);
Location newHome = getIslands().getSafeHomeLocation(getWorld(), prospectiveOwner, 1);