From 8b956b347dbcc25e31cfc35951c1594e27e4bb43 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Sun, 14 Jan 2024 14:36:31 -0500 Subject: [PATCH] Fix #4579 --- .../violetmoon/quark/content/world/gen/MonsterBoxGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/violetmoon/quark/content/world/gen/MonsterBoxGenerator.java b/src/main/java/org/violetmoon/quark/content/world/gen/MonsterBoxGenerator.java index 88ae8fd52c..eaeb51660d 100644 --- a/src/main/java/org/violetmoon/quark/content/world/gen/MonsterBoxGenerator.java +++ b/src/main/java/org/violetmoon/quark/content/world/gen/MonsterBoxGenerator.java @@ -42,7 +42,7 @@ public void generateChunk(WorldGenRegion world, ChunkGenerator generator, Random } private boolean canPlaceHere(WorldGenRegion level, BlockPos.MutableBlockPos pos, BlockState state) { - if(!state.canBeReplaced()) + if(!state.canBeReplaced() || state.liquid()) return false; //Mutable blockpos nudging dance to avoid an allocation, probably not worth it, stupidest thing ever, vibes based optimization