Skip to content

Commit

Permalink
(mc1.18-) fixed microtiming tiletick event ACTION_END is not correctl…
Browse files Browse the repository at this point in the history
…y recorded
  • Loading branch information
Fallen-Breath committed Jun 25, 2024
1 parent 59fd088 commit 48cc9d6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ private void preExecuteBlockTileTickEvent(ScheduledTick<Block> event, CallbackIn
at = @At(
value = "INVOKE",
//#if MC >= 11500
target = "Lnet/minecraft/block/BlockState;scheduledTick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V"
target = "Lnet/minecraft/block/BlockState;scheduledTick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V",
//#else
//$$ target = "Lnet/minecraft/block/BlockState;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V"
//$$ target = "Lnet/minecraft/block/BlockState;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V",
//#endif
shift = At.Shift.AFTER
)
)
private void postExecuteBlockTileTickEvent(ScheduledTick<Block> event, CallbackInfo ci)
Expand All @@ -86,7 +87,8 @@ private void preExecuteFluidTileTickEvent(ScheduledTick<Fluid> event, CallbackIn
method = "tickFluid",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/fluid/FluidState;onScheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V"
target = "Lnet/minecraft/fluid/FluidState;onScheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V",
shift = At.Shift.AFTER
)
)
private void postExecuteFluidTileTickEvent(ScheduledTick<Fluid> event, CallbackInfo ci)
Expand Down

0 comments on commit 48cc9d6

Please sign in to comment.