Do not clear inventory and enderchest when creating a new island.
This commit is contained in:
parent
f33c841583
commit
0957308a12
|
|
@ -55,8 +55,6 @@ public class IslandGo extends PlayerSubCommand {
|
|||
islandPlayer.islandOwner(true);
|
||||
islandPlayer.islandUUID(island.islandUUID());
|
||||
islandPlayer.islandId(id);
|
||||
player.getEnderChest().clear();
|
||||
player.getInventory().clear();
|
||||
player.setTotalExperience(0);
|
||||
player.setExp(0);
|
||||
player.setFoodLevel(20);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@ public class IslandGenerator extends BlockPopulator {
|
|||
if (!limitedRegion.generateTree(location, random, TreeType.TREE)) {
|
||||
limitedRegion.setType(startX + treeX, startY, startX + treeZ, Material.OAK_SAPLING);
|
||||
}
|
||||
// TODO - add barrel with loottable for starter gear
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user