Skip to content

Commit

Permalink
Merge pull request #240 from sakurawald/dev
Browse files Browse the repository at this point in the history
publish: v6.3.0
  • Loading branch information
sakurawald authored Jan 8, 2025
2 parents 71d5f92 + 94f0e7e commit 4ad808f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
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);
}
}

}

0 comments on commit 4ad808f

Please sign in to comment.