Skip to content

Commit

Permalink
fix: soonSlate at start of tick instead of end
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Nov 11, 2024
1 parent 0914cf7 commit e13ca84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e13ca84

Please sign in to comment.