Skip to content

Commit

Permalink
also check IAE (thx sophie for the hint)
Browse files Browse the repository at this point in the history
  • Loading branch information
andi-makes committed Jun 8, 2024
1 parent bfaa8d5 commit 70ef844
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private static boolean protectedIsValidSpawnCheck(BlockState block, BlockPos pos
} else {
try {
return block.isValidSpawn(world, pos, null);
} catch (NullPointerException e) {
} catch (NullPointerException | IllegalArgumentException e) {
ResourceLocation rl = BuiltInRegistries.BLOCK.getKey(block.getBlock());
if (!invalidBlocks.contains(rl)) {
invalidBlocks.add(rl);
Expand Down

0 comments on commit 70ef844

Please sign in to comment.