Skip to content

Commit

Permalink
バグ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
bea4dev committed Aug 3, 2021
1 parent 926c61e commit 7d71d0f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/be4rjp/parallel/ParallelWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,11 @@ public void removeBlock(Block block){

Map<BlockLocation, PBlockData> blockMap = chunkBlockMap.get(chunkPosition);
if(blockMap == null) return null;
return blockMap.get(location).getBlockData();

PBlockData pBlockData = blockMap.get(location);
if(pBlockData == null) return null;

return pBlockData.getBlockData();
}


Expand All @@ -397,7 +401,11 @@ public int getBlockLightLevel(Block block){

Map<BlockLocation, PBlockData> blockMap = chunkBlockMap.get(chunkPosition);
if(blockMap == null) return -1;
return blockMap.get(location).getBlockLightLevel();

PBlockData pBlockData = blockMap.get(location);
if(pBlockData == null) return -1;

return pBlockData.getBlockLightLevel();
}


Expand Down

0 comments on commit 7d71d0f

Please sign in to comment.