Skip to content

Commit eceef89

Browse files
committed
fix: fix onPistonTryPush & onPistonPush #137
1 parent ee1c01b commit eceef89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/legacy/events/EventHooks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ LL_TYPE_INSTANCE_HOOK(
499499
CallEventRtnValue(
500500
EVENT_TYPES::onPistonTryPush,
501501
false,
502-
IntPos::newPos(curPos, region.getDimensionId()),
502+
IntPos::newPos(this->getPosition(), region.getDimensionId()),
503503
BlockClass::newBlock(curPos, region.getDimensionId())
504504
);
505505
}
@@ -509,7 +509,7 @@ LL_TYPE_INSTANCE_HOOK(
509509
if (shouldPush) {
510510
CallEventUncancelable(
511511
EVENT_TYPES::onPistonPush,
512-
IntPos::newPos(curPos, region.getDimensionId()),
512+
IntPos::newPos(this->getPosition(), region.getDimensionId()),
513513
BlockClass::newBlock(curPos, region.getDimensionId())
514514
);
515515
}

0 commit comments

Comments
 (0)