Skip to content

Commit

Permalink
fix: depth is reset on every block event
Browse files Browse the repository at this point in the history
  • Loading branch information
Space Walker committed Mar 26, 2022
1 parent 8a6db65 commit 97aafa1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ private void onNextBlockEvent(CallbackInfo ci) {
)
)
private void postBlockEvents(CallbackInfo ci) {
if (ignoreLastBatch_bes) {
BlockEventCounters.currentDepth--;
}

((IMinecraftServer)server).postBlockEvents_bes();
}

Expand All @@ -101,10 +105,6 @@ private void postBlockEvents(CallbackInfo ci) {
)
)
private void onBlockEvent(BlockEventData data, CallbackInfoReturnable<Boolean> cir) {
if (ignoreLastBatch_bes) {
BlockEventCounters.currentDepth--;
}

BlockEventCounters.movingBlocksThisEvent = 0;
}

Expand Down

0 comments on commit 97aafa1

Please # to comment.