Skip to content

Commit

Permalink
Merge pull request #78 from telvarost/75-stay-in-vehicle-when-logging…
Browse files Browse the repository at this point in the history
…-out-and-back-in

ISSUE-75 - Hotfix logging out of fast moving vehicle causing the player to freeze
  • Loading branch information
telvarost authored Apr 12, 2024
2 parents c3e5fa2 + 75e96ce commit 260a1d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=b1.7.3-build.2
loader_version=0.14.24-babric.1

# Mod Properties
mod_version=2.4.0
mod_version=2.4.1
maven_group=com.github.telvarost
archives_base_name=AnnoyanceFix

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,13 @@ private void betaTweaks_readCustomDataFromTag(CompoundTag tag, CallbackInfo info
&& (entityToCheck.y == vehicle.y)
&& (entityToCheck.z == vehicle.z)
) {
level.removeEntity(entityToCheck);
//level.removeEntity(entityToCheck);
startRiding(entityToCheck);
}
}

level.spawnEntity(vehicle);
startRiding(vehicle);
// level.spawnEntity(vehicle);
// startRiding(vehicle);
}
}
}

0 comments on commit 260a1d5

Please sign in to comment.