Skip to content

Commit b36ef8e

Browse files
committed
fix: fix onUseBucketTake
1 parent 552310f commit b36ef8e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/lse/events/PlayerEvents.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,10 @@ LL_TYPE_INSTANCE_HOOK(
510510
auto& bs = entity.getDimensionBlockSource();
511511
using ::SharedTypes::v1_26_20::MaterialType;
512512
if (auto& type = bs.getMaterial(pos).mType; type != MaterialType::Water && type != MaterialType::Lava) {
513-
return InteractionResult{false, true};
514-
}
515-
if (auto& bl = bs.getBlock(pos).mBlockType;
516-
*bl->mNameInfo->mFullName != VanillaBlockTypeIds::PowderSnow()) {
517-
return InteractionResult{false, true};
513+
if (auto& bl = bs.getBlock(pos).mBlockType;
514+
*bl->mNameInfo->mFullName != VanillaBlockTypeIds::PowderSnow()) {
515+
return origin(instance, entity, pos, face, clickPos);
516+
}
518517
}
519518
if (!CallEvent(
520519
EVENT_TYPES::onUseBucketTake,

0 commit comments

Comments
 (0)