Skip to content

Commit c0304af

Browse files
committed
fix: fix hopper events
1 parent 67519ab commit c0304af

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/lse/events/EventHooks.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,13 +1199,14 @@ LL_TYPE_INSTANCE_HOOK(
11991199
HopperAddItemHook,
12001200
HookPriority::Normal,
12011201
Hopper,
1202-
&Hopper::_addItem,
1202+
&Hopper::_tryMoveInItem,
12031203
bool,
1204-
BlockSource& region,
1205-
Container& container,
1206-
ItemStack& item,
1207-
int face,
1208-
int itemCount
1204+
::BlockSource& region,
1205+
::Container& container,
1206+
::ItemStack& item,
1207+
int slot,
1208+
int face,
1209+
int itemCount
12091210
) {
12101211
IF_LISTENED(EVENT_TYPES::onHopperSearchItem) {
12111212
if (hopperStatus == HopperStatus::PullIn) {
@@ -1234,7 +1235,7 @@ LL_TYPE_INSTANCE_HOOK(
12341235
}
12351236
IF_LISTENED_END(EVENT_TYPES::onHopperPushOut);
12361237
hopperStatus = HopperStatus::None;
1237-
return origin(region, container, item, face, itemCount);
1238+
return origin(region, container, item, slot, face, itemCount);
12381239
}
12391240
} // namespace HopperEvents
12401241

0 commit comments

Comments
 (0)