Skip to content

Commit 7fc7751

Browse files
committed
Fix #297 - Fix crash when loot module air-only is true and mobs are killed in non-air blocks
1 parent 4f1f63e commit 7fc7751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/studio/magemonkey/divinity/modules/list/loot/LootManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private Location findLocation(@NotNull Location from) {
193193

194194
block = loc.getBlock();
195195
if (!block.isEmpty() && block.getType().isSolid()) {
196-
block = world.getHighestBlockAt(loc);
196+
block = world.getHighestBlockAt(loc).getRelative(BlockFace.UP);
197197
}
198198
}
199199

0 commit comments

Comments
 (0)