From 781676a90f05be17cbc634ecc406b4a213874b84 Mon Sep 17 00:00:00 2001 From: DarkRails Date: Sat, 16 Feb 2019 20:43:39 +0100 Subject: [PATCH] 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 --- .../api/commands/island/team/IslandTeamInviteAcceptCommand.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamInviteAcceptCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamInviteAcceptCommand.java index 9e2a682f4..2614f6031 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamInviteAcceptCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/island/team/IslandTeamInviteAcceptCommand.java @@ -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);