diff --git a/gradle.properties b/gradle.properties index 30a07e6..19e1944 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,6 +15,6 @@ kotlin_version=2.0.21 fabric_kotlin_version=1.12.3 # mod properties -mod_version=1.4.1 +mod_version=1.4.2 maven_group=net.mcbrawls mod_id=slate diff --git a/src/main/java/net/mcbrawls/slate/mixin/ServerPlayerEntityMixin.java b/src/main/java/net/mcbrawls/slate/mixin/ServerPlayerEntityMixin.java index cba664a..0551033 100644 --- a/src/main/java/net/mcbrawls/slate/mixin/ServerPlayerEntityMixin.java +++ b/src/main/java/net/mcbrawls/slate/mixin/ServerPlayerEntityMixin.java @@ -72,8 +72,8 @@ private void closeSlateOnDeath(DamageSource source, CallbackInfo ci) { } } - @Inject(method = "playerTick", at = @At("TAIL")) - private void onTickEnd(CallbackInfo ci) { + @Inject(method = "tick", at = @At("HEAD")) + private void onTickStart(CallbackInfo ci) { if (this.soonSlate != null) { if (!hasSlateOpen()) { ServerPlayerEntity that = (ServerPlayerEntity) (Object) this;