Skip to content

Commit

Permalink
Use correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Apr 23, 2024
1 parent ca1029d commit 4f46222
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@Mixin(EntityMinecart.class)
public abstract class MixinEntityMinecart {

@Inject(method = "onUpdate", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/item/EntityMinecart;canBeRidden()Z", shift = At.Shift.BEFORE) ,cancellable = true, remap = false)
@Inject(method = "func_70071_h_", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/item/EntityMinecart;canBeRidden()Z", shift = At.Shift.BEFORE) ,cancellable = true, remap = false)
public void onUpdate(CallbackInfo ci) {
if (((AccessorEntity) this).getTicksExisted() % Settings.minecartSkipTicks != 0) {
ci.cancel();
Expand Down

0 comments on commit 4f46222

Please sign in to comment.