mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-26 09:11:39 +01:00
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:
parent
3aefdc449d
commit
781676a90f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user