Skip to content

Commit

Permalink
fix: Fix scheduled events processing
Browse files Browse the repository at this point in the history
Fixes datapack compatibility.
  • Loading branch information
Steveplays28 committed Aug 26, 2023
1 parent 0f5df58 commit e618940
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ private void sendSleepingStatus() {

@Inject(method = "tickTime", at = @At(value = "HEAD"), cancellable = true)
public void tickTimeInject(CallbackInfo ci) {
this.worldProperties.getScheduledEvents().processEvents(this.server, this.properties.getTime());

if (!this.shouldTickTime) {
ci.cancel();
return;
Expand Down

0 comments on commit e618940

Please sign in to comment.