Skip to content

Commit 93dddf7

Browse files
committed
Fix maxMoveDistance not working when set to 0
1 parent 6bba3d2 commit 93dddf7

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.4.9] - 2026-04-06
10+
### Fixed
11+
- `maxMoveDistance` not working when set to `0`
12+
913
## [1.4.8] - 2026-04-04
1014
### Changed
1115
- Apply waiting period config to `/back` command

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ modrinth_minecraft_versions=[VERSIONED]
88
java_version=[VERSIONED]
99
loader_version=0.18.6
1010
# Mod Properties
11-
mod_version=1.4.8
11+
mod_version=1.4.9
1212
maven_group=me.drex
1313
archives_base_name=fabric-essentials
1414
# Dependencies

src/main/java/me/drex/essentials/mixin/async/ServerPlayerMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void onTick(CallbackInfo ci) {
100100
WaitingPeriodConfig.CancellationConfig cancellation = waitingPeriodConfig.cancellation;
101101
double distance = waitingPeriodSource.getPosition().distanceTo(this.position());
102102
ServerPlayer player = (ServerPlayer) (Object) this;
103-
if (cancellation.maxMoveDistance >= 0 && distance >= cancellation.maxMoveDistance && !PermissionUtil.check(player, "teleport.cancel.bypass.move")) {
103+
if (cancellation.maxMoveDistance >= 0 && distance > cancellation.maxMoveDistance && !PermissionUtil.check(player, "teleport.cancel.bypass.move")) {
104104
cancelDelayedTeleport(new TeleportCancelException(MOVE.component()));
105105
return;
106106
}

0 commit comments

Comments
 (0)