Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Commit

Permalink
Fix initial material being null
Browse files Browse the repository at this point in the history
  • Loading branch information
Efnilite committed Jan 16, 2022
1 parent fbf4897 commit 3c5b0c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ public DefaultGenerator(@NotNull ParkourPlayer player, GeneratorOption... genera

@Override
public BlockData selectBlockData() {
BlockData data = player.randomMaterial().createBlockData();
return data;
return player.randomMaterial().createBlockData();
}

@Override
Expand All @@ -161,7 +160,7 @@ public List<Block> selectBlocks() {
height = getRandomChance(heightChances);
}

if (isSpecial) {
if (isSpecial && specialType != null) {
switch (specialType) { // adjust for special jumps
case PACKED_ICE: // ice
gap++;
Expand Down
3 changes: 3 additions & 0 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ v2.9
- Added inventory saving to files for backup
> Use /witp recoverinventory.
> Useful for recovering inventories after crashes.
> Has permission witp.recoverinventory
- Added forcing other players to join permission
> witp.join.other
- Changed glass pane to white glass pane for better compatibility with certain resource packs and better visibility
- Removed need for 'teleporting' option by automatically not teleporting players who leave by switch worlds
- Fixed errors on join/leave causing incomplete setups for joining or leaving
Expand Down

0 comments on commit 3c5b0c9

Please sign in to comment.