From 0ede4c8881de719616be5d4de138392ceb9998f9 Mon Sep 17 00:00:00 2001 From: IzzelAliz Date: Tue, 28 Dec 2021 11:52:21 +0800 Subject: [PATCH] Fix horse crash (#433) --- .../mixin/core/world/entity/player/ServerPlayerMixin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/entity/player/ServerPlayerMixin.java b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/entity/player/ServerPlayerMixin.java index 262d58d5..9ee34823 100644 --- a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/entity/player/ServerPlayerMixin.java +++ b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/entity/player/ServerPlayerMixin.java @@ -163,6 +163,7 @@ public abstract class ServerPlayerMixin extends PlayerMixin implements ServerPla @Shadow(remap = false) private boolean hasTabListName; @Shadow(remap = false) private Component tabListDisplayName; @Shadow public abstract void resetFallDistance(); + @Shadow public abstract void shadow$nextContainerCounter(); // @formatter:on public String displayName; @@ -671,7 +672,7 @@ public abstract class ServerPlayerMixin extends PlayerMixin implements ServerPla } public int nextContainerCounter() { - this.nextContainerCounter(); + this.shadow$nextContainerCounter(); return this.containerCounter; }