Skip to content

Commit

Permalink
Resolve LiteLDev#921
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Dec 3, 2022
1 parent a5eaf62 commit 1f461f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LiteLoader/src/llapi/EventAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ bool EventManager<EVENT>::callToPlugin(std::string pluginName, EVENT& ev) {
/////////////////////////////// Event Declare ///////////////////////////////

#define DECLARE_EVENT_DATA(EVENT) \
template class EventManager<EVENT>; \
template class Event::EventManager<EVENT>; \
/*********************** For Compatibility ***********************/ \
std::list<std::pair<string, std::function<bool(const EVENT&)>>> EventTemplate<EVENT>::listeners; \
std::list<std::pair<string, std::function<bool(EVENT&)>>> EventTemplate<EVENT>::listenersNoConst;
Expand Down
2 changes: 1 addition & 1 deletion LiteLoader/src/llapi/mc/BlockInstanceAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Container* BlockInstance::getContainer() {
auto be = getBlockEntity();
if (!be)
return nullptr;
return VirtualCall<Container*>(be, 224); // IDA ChestBlockActor::`vftable'{for `RandomizableBlockActorContainerBase'}
return (Container*)be; // Before 1.19.50: IDA ChestBlockActor::`vftable'{for `RandomizableBlockActorContainerBase'}
}

bool BlockInstance::breakNaturally(bool isCreativeMode) {
Expand Down

0 comments on commit 1f461f3

Please sign in to comment.