Skip to content

Commit d6604fd

Browse files
committed
fix:fix BlockExplodedHook install
1 parent 4cd863b commit d6604fd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/lse/events/BlockEvents.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#include "ll/api/service/Bedrock.h"
1010
#include "mc/legacy/ActorRuntimeID.h"
1111
#include "mc/legacy/ActorUniqueID.h"
12+
#include "mc/scripting/modules/minecraft/events/ScriptBlockGlobalEventListener.h"
1213
#include "mc/server/commands/CommandOrigin.h"
1314
#include "mc/server/commands/CommandOriginType.h"
14-
#include "mc/scripting/modules/minecraft/events/ScriptBlockGlobalEventListener.h"
1515
#include "mc/world/actor/ArmorStand.h"
1616
#include "mc/world/actor/Hopper.h"
1717
#include "mc/world/actor/player/Player.h"
@@ -50,6 +50,7 @@
5050
#include "mc/world/level/dimension/Dimension.h"
5151
#include "mc/world/level/material/Material.h"
5252

53+
5354
namespace lse::events::block {
5455
LL_TYPE_INSTANCE_HOOK(
5556
ContainerChangeHook,
@@ -254,7 +255,7 @@ LL_TYPE_STATIC_HOOK(
254255
LL_TYPE_INSTANCE_HOOK(
255256
BlockExplodedHook,
256257
HookPriority::Normal,
257-
ScriptModuleMinecraft::ScriptBlockGlobalEventListener ,
258+
ScriptModuleMinecraft::ScriptBlockGlobalEventListener,
258259
&ScriptBlockGlobalEventListener::onBlockExploded,
259260
EventResult,
260261
Dimension& dimension,
@@ -478,9 +479,7 @@ void FarmDecayEvent() { FarmDecayHook::hook(); }
478479
void PistonPushEvent() { PistonPushHook::hook(); }
479480
void ExplodeEvent() { ExplodeHook::hook(); }
480481
void RespawnAnchorExplodeEvent() { RespawnAnchorExplodeHook::hook(); }
481-
void BlockExplodedEvent() {
482-
// BlockExplodedHook ::hook();
483-
}
482+
void BlockExplodedEvent() { BlockExplodedHook ::hook(); }
484483
void RedstoneUpdateEvent() {
485484
redstone::RedstoneTorchBlockHook::hook();
486485
redstone::RedStoneWireBlockHook::hook();

0 commit comments

Comments
 (0)