Skip to content

Commit d9770d9

Browse files
[fix] Fix wrong lightning strikes occur position prevents lightning rod from producing redstone signals
1 parent cb13389 commit d9770d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/plus/dragons/createenchantmentindustry/common/fluids/experience/BlazeExperienceBlockEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ protected boolean strikeLightning(ServerLevel level, BlockPos strikePos) {
239239
strikePos,
240240
128,
241241
PoiManager.Occupancy.ANY).sorted((_p1, _p2) -> level.random.nextInt(-1, 2)).findFirst();
242-
lightning.moveTo(Vec3.atBottomCenterOf(rodPos.orElse(strikePos)));
242+
lightning.moveTo(Vec3.atBottomCenterOf(rodPos.orElse(strikePos).above()));
243243
level.addFreshEntity(lightning);
244244
return rodPos.isEmpty();
245245
}

0 commit comments

Comments
 (0)