Skip to content

Commit cdbfa2b

Browse files
committed
Update for mc 1.21.10
1 parent 5a5acf8 commit cdbfa2b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ version = "1.2.6-SNAPSHOT"
1515
group = "xyz.jpenilla"
1616
description = "Server-side Fabric mod enhancing the console with tab completions, colored log output, command syntax highlighting, command history, and more."
1717

18-
val minecraftVersion = "1.21.8"
18+
val minecraftVersion = "1.21.10"
1919

2020
dependencies {
2121
minecraft("com.mojang", "minecraft", minecraftVersion)
2222
mappings(loom.officialMojangMappings())
2323
modImplementation("net.fabricmc", "fabric-loader", "0.17.2")
24-
modImplementation("net.fabricmc.fabric-api", "fabric-api", "0.133.4+1.21.8")
24+
modImplementation("net.fabricmc.fabric-api", "fabric-api", "0.135.0+1.21.10")
2525

2626
annotationProcessor("org.apache.logging.log4j", "log4j-core", "2.25.1")
2727

@@ -31,7 +31,7 @@ dependencies {
3131

3232
implementation(include("org.fusesource.jansi", "jansi", "2.4.2"))
3333

34-
modImplementation(include("net.kyori", "adventure-platform-fabric", "6.6.0"))
34+
modImplementation(include("net.kyori", "adventure-platform-fabric", "6.7.0"))
3535

3636
implementation(transitiveInclude("org.spongepowered:configurate-hocon:4.2.0") {
3737
exclude("net.kyori", "option") // provided by adventure-platform-fabric
@@ -65,7 +65,7 @@ fabricModJson {
6565
mainEntrypoint("xyz.jpenilla.betterfabricconsole.BetterFabricConsole")
6666
entrypoint("preLaunch", "xyz.jpenilla.betterfabricconsole.BetterFabricConsolePreLaunch")
6767
mixin("better-fabric-console.mixins.json")
68-
depends("fabricloader", ">=0.16.14")
68+
depends("fabricloader", ">=0.17.2")
6969
depends("fabric-api", "*")
7070
depends("minecraft", minecraftVersion)
7171
depends("adventure-platform-fabric", "*")

src/main/java/xyz/jpenilla/betterfabricconsole/BetterFabricConsole.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private void registerCommands(
8484
final Commands.CommandSelection commandSelection
8585
) {
8686
dispatcher.register(literal("better-fabric-console")
87-
.requires(stack -> stack.hasPermission(stack.getServer().getOperatorUserPermissionLevel()))
87+
.requires(stack -> stack.hasPermission(stack.getServer().operatorUserPermissionLevel()))
8888
.executes(this::executeCommand));
8989
}
9090

src/main/java/xyz/jpenilla/betterfabricconsole/mixin/DedicatedServerMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import net.minecraft.server.Services;
3333
import net.minecraft.server.WorldStem;
3434
import net.minecraft.server.dedicated.DedicatedServer;
35-
import net.minecraft.server.level.progress.ChunkProgressListenerFactory;
35+
import net.minecraft.server.level.progress.LevelLoadListener;
3636
import net.minecraft.server.packs.repository.PackRepository;
3737
import net.minecraft.world.level.storage.LevelStorageSource;
3838
import org.jspecify.annotations.NonNull;
@@ -48,8 +48,8 @@ abstract class DedicatedServerMixin extends MinecraftServer {
4848

4949
@Unique private final MinecraftServerAudiences audiences = MinecraftServerAudiences.of(this);
5050

51-
DedicatedServerMixin(final Thread thread, final LevelStorageSource.LevelStorageAccess levelStorageAccess, final PackRepository packRepository, final WorldStem worldStem, final Proxy proxy, final DataFixer dataFixer, final Services services, final ChunkProgressListenerFactory chunkProgressListenerFactory) {
52-
super(thread, levelStorageAccess, packRepository, worldStem, proxy, dataFixer, services, chunkProgressListenerFactory);
51+
DedicatedServerMixin(final Thread thread, final LevelStorageSource.LevelStorageAccess levelStorageAccess, final PackRepository packRepository, final WorldStem worldStem, final Proxy proxy, final DataFixer dataFixer, final Services services, final LevelLoadListener levelLoadListener) {
52+
super(thread, levelStorageAccess, packRepository, worldStem, proxy, dataFixer, services, levelLoadListener);
5353
}
5454

5555
@Override

src/main/java/xyz/jpenilla/betterfabricconsole/mixin/ServerGamePacketListenerImplMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private void logExecutedSignedCommand(final ServerboundChatCommandSignedPacket p
5555
@Unique
5656
private void logCommand(final String command) {
5757
if (BetterFabricConsole.instance().config().logPlayerExecutedCommands()) {
58-
BetterFabricConsole.LOGGER.info("{} issued server command: /{}", this.getPlayer().getGameProfile().getName(), command);
58+
BetterFabricConsole.LOGGER.info("{} issued server command: /{}", this.getPlayer().getGameProfile().name(), command);
5959
}
6060
}
6161
}

0 commit comments

Comments
 (0)