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