Skip to content

Commit

Permalink
[lifecycle events] fix prepare world hook for old server versions
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Jan 24, 2025
1 parent a1b7461 commit 44ad22a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ public class MinecraftServerMixin {
method = "loadWorld",
at = @At(
value = "INVOKE",
remap = false,
ordinal = 0,
target = "Ljava/lang/System;currentTimeMillis()J"
shift = Shift.AFTER,
target = "Lnet/minecraft/server/PlayerManager;setWorld(Lnet/minecraft/server/world/ServerWorld;)V"
)
)
private void osl$lifecycle$prepareWorld(CallbackInfo ci) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ public class MinecraftServerMixin {
method = "loadWorld",
at = @At(
value = "INVOKE",
remap = false,
ordinal = 0,
target = "Ljava/lang/System;currentTimeMillis()J"
shift = Shift.AFTER,
target = "Lnet/minecraft/server/PlayerManager;setWorld(Lnet/minecraft/server/world/ServerWorld;)V"
)
)
private void osl$lifecycle$prepareWorld(CallbackInfo ci) {
Expand Down

0 comments on commit 44ad22a

Please sign in to comment.