mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
Removed redundant null checks and fixed a potential file separator issue
This commit is contained in:
@ -59,12 +59,11 @@ public abstract class BlockBag {
|
||||
}
|
||||
fetchBlock(blockState);
|
||||
} catch (OutOfBlocksException e) {
|
||||
BlockState placed = blockState; // TODO BlockType.getBlockBagItem(id, data);
|
||||
if (placed == null || placed.getBlockType().getMaterial().isAir()) {
|
||||
if (blockState.getBlockType().getMaterial().isAir()) {
|
||||
throw e; // TODO: check
|
||||
}
|
||||
|
||||
fetchBlock(placed);
|
||||
fetchBlock(blockState);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user