Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish: v6.3.0 #240

Merged
merged 3 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
> The version number of fuji follows `semver` now: https://semver.org/

- (core) feature: a new facility to allow suppress the sending of a message by its type.
- (teleport_warmup module) feature: a new meta `fuji.teleport_warmup.warmup` to specify the `warmup sec` based on luckperms. (Thanks to @FishyFinn)
- (teleport_warmup module) fix: should not corrupt the `relative teleport`. (Thanks to @FishyFinn)
- (warp module) feature: the feedback message for `/warp tp` command.
- (nametag module) fix: should hide the nametag if the player is `in-visbile`.
- (disabler.move_wrongly_disabler) fix: should also work for `entity moved wrongly`.
- (back module): add option `enable_back_on_death` and `enable_back_on_teleport`.
Binary file modified docs/release/fuji.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.parallel=true
# project
maven_group=io.github.sakurawald
mod_id=fuji
mod_version=6.2.0
mod_version=6.3.0

# loader
minecraft_version=1.21.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

public class BackConfigModel {
public double ignore_distance = 32d;
public boolean enable_back_on_death = true;
public boolean enable_back_on_teleport = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ public abstract class ServerPlayerEntityMixin {

@Inject(method = "onDeath", at = @At("HEAD"))
public void saveCurPos(DamageSource damageSource, CallbackInfo ci) {
BackInitializer.saveCurrentPosition(player);
if (BackInitializer.config.model().enable_back_on_death) {
BackInitializer.saveCurrentPosition(player);
}
}

@Inject(method = "teleport", at = @At("HEAD"))
public void saveCurPos(ServerWorld serverWorld, double d, double e, double f, Set<PositionFlag> set, float g, float h, boolean bl, CallbackInfoReturnable<Boolean> cir) {
BackInitializer.saveCurrentPosition(player);
if (BackInitializer.config.model().enable_back_on_teleport) {
BackInitializer.saveCurrentPosition(player);
}
}

}
Loading