Skip to content

Commit

Permalink
update to 1.21.3
Browse files Browse the repository at this point in the history
  • Loading branch information
CodedSakura committed Oct 27, 2024
1 parent 18c022f commit c3e649a
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.5.10

* Update to support 1.21.3

# 2.5.9

* Update to support 1.21.1
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'fabric-loom' version '1.8-SNAPSHOT'
id 'maven-publish'
id "com.modrinth.minotaur" version "2.+"
}
Expand Down
16 changes: 8 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
org.gradle.jvmargs=-Xmx1G

# Mod Properties
mod_version=2.5.9
mod_version=2.5.10
maven_group=dev.codedsakura.blossom
mod_slug=BlossomLib
archives_base_name=blossom-lib
supported_versions=1.21;1.21.1
supported_versions=1.21.3;1.21.2

# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.21.1
yarn_mappings=build.3
loader_version=0.16.5
minecraft_version=1.21.3
yarn_mappings=build.2
loader_version=0.16.7

# Dependencies
fabric_version=0.103.0
fpa_version=0.2-SNAPSHOT
fabric_version=0.107.0
fpa_version=0.3.2
# https://maven.nucleoid.xyz/xyz/nucleoid/server-translations-api/
server_translations_version=2.3.1+1.21-pre2
server_translations_version=2.4.0+1.21.2-rc1
4 changes: 2 additions & 2 deletions src/main/java/dev/codedsakura/blossom/lib/BlossomLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void onInitialize() {
.then(argument("rot", RotationArgumentType.rotation())
.executes(ctx -> {
Vec2f rot = RotationArgumentType.getRotation(ctx, "rot")
.toAbsoluteRotation(ctx.getSource());
.getRotation(ctx.getSource());
int standStill = IntegerArgumentType.getInteger(ctx, "standStill");
TextUtils.send(ctx, "blossom.debug.teleport.no-cooldown", standStill);
return TeleportUtils.teleport(
Expand All @@ -169,7 +169,7 @@ public void onInitialize() {
.then(argument("rot", RotationArgumentType.rotation())
.executes(ctx -> {
Vec2f rot = RotationArgumentType.getRotation(ctx, "rot")
.toAbsoluteRotation(ctx.getSource());
.getRotation(ctx.getSource());
int standStill = IntegerArgumentType.getInteger(ctx, "standStill");
int cooldown = IntegerArgumentType.getInteger(ctx, "cooldown");
ServerPlayerEntity player = ctx.getSource().getPlayer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.entity.Entity;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.world.World;
import org.jetbrains.annotations.NotNull;

import java.util.function.Predicate;
Expand Down Expand Up @@ -80,6 +82,7 @@ public static boolean check(@NotNull Entity entity, @NotNull String permission,
if (isFPAPILoaded()) {
return PermissionsExecutor.check(entity, permission, level);
}
return entity.hasPermissionLevel(level);
World world = entity.getWorld();
return entity.getCommandSource(world instanceof ServerWorld ? (ServerWorld)world : null).hasPermissionLevel(level);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public static boolean teleport(@Nullable TeleportConfig customConfig, double sta
TeleportUtils.addLastTeleport(who.getUuid(), new TeleportDestination(who));
}
TeleportDestination where = getWhere.get();
who.teleport(where.world, where.x, where.y, where.z, where.yaw, where.pitch);
who.teleport(where.world, where.x, where.y, where.z, Set.of(), where.yaw, where.pitch, false);
COOLDOWNS.put(pair, new Date().getTime() / 1000 + cooldownTime);
});
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class PlayerSetFoV {
public static void setPlayerFoV(ServerPlayerEntity player, float multiplier) {

// invert math done in AbstractClientPlayerEntity#getFovMultiplier
float genericMovementSpeed = (float) player.getAttributeValue(EntityAttributes.GENERIC_MOVEMENT_SPEED);
float genericMovementSpeed = (float) player.getAttributeValue(EntityAttributes.MOVEMENT_SPEED);
multiplier = (genericMovementSpeed / 2f) / (multiplier - .5f);

player.getAbilities().setWalkSpeed(multiplier);
Expand Down

0 comments on commit c3e649a

Please sign in to comment.