feat: add support for Minecraft 1.21.6

This commit is contained in:
William278 committed 2025-06-22 17:18:47 +01:00
1 parent c30344d5f5
commit dd11a4dcec
13 files changed
+96 -11

No files matched your search

+33
View File
@@ -56,21 +56,25 @@ jobs:
fabric-1.21.1
fabric-1.21.4
fabric-1.21.5
fabric-1.21.6
distro-groups: |
paper
fabric
fabric
fabric
fabric
distro-descriptions: |
Paper
Fabric 1.21.1
Fabric 1.21.4
Fabric 1.21.5
Fabric 1.21.6
files: |
target/HuskHomes-Paper-${{ env.version_name }}.jar
target/HuskHomes-Fabric-${{ env.version_name }}+mc.1.21.1.jar
target/HuskHomes-Fabric-${{ env.version_name }}+mc.1.21.4.jar
target/HuskHomes-Fabric-${{ env.version_name }}+mc.1.21.5.jar
target/HuskHomes-Fabric-${{ env.version_name }}+mc.1.21.6.jar
- name: 'Spigot: Publish to Modrinth & Hangar 🚰'
uses: WiIIiam278/mc-publish@hangar
with:
@@ -116,6 +120,7 @@ jobs:
1.21.2
1.21.4
1.21.5
1.21.6
java: 17
- name: 'Fabric 1.21.1: Publish to Modrinth & CurseForge 🧵'
uses: WiIIiam278/mc-publish@hangar
@@ -200,4 +205,32 @@ jobs:
fabric
game-versions: |
1.21.5
java: 21
- name: 'Fabric 1.21.6: Publish to Modrinth & CurseForge 🧵'
uses: WiIIiam278/mc-publish@hangar
if: success() || failure()
with:
modrinth-id: J6U9o3JG
modrinth-featured: false
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 849217
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
dependencies: |
fabric-api | requires | *
dynmap | suggests | *
bluemap | suggests | *
pl3xmap | suggests | *
luckperms | suggests | *
plan | suggests | *
impactor | suggests | *
placeholder-api | suggests | *
files-primary: target/HuskHomes-Fabric-${{ env.version_name }}+mc.1.21.6.jar
name: HuskHomes (Fabric) v${{ env.version_name }}
version: ${{ env.version_name }}
version-type: alpha
changelog: ${{ github.event.head_commit.message }}
loaders: |
fabric
game-versions: |
1.21.6
java: 21
+32
View File
@@ -45,21 +45,25 @@ jobs:
fabric-1.21.1
fabric-1.21.4
fabric-1.21.5
fabric-1.21.6
distro-groups: |
paper
fabric
fabric
fabric
fabric
distro-descriptions: |
Paper
Fabric 1.21.1
Fabric 1.21.4
Fabric 1.21.5
Fabric 1.21.6
files: |
target/HuskHomes-Paper-${{ github.event.release.tag_name }}.jar
target/HuskHomes-Fabric-${{ github.event.release.tag_name }}+mc.1.21.1.jar
target/HuskHomes-Fabric-${{ github.event.release.tag_name }}+mc.1.21.4.jar
target/HuskHomes-Fabric-${{ github.event.release.tag_name }}+mc.1.21.5.jar
target/HuskHomes-Fabric-${{ github.event.release.tag_name }}+mc.1.21.6.jar
- name: 'Spigot: Publish to Modrinth & Hangar 🚰'
uses: WiIIiam278/mc-publish@hangar
with:
@@ -104,6 +108,7 @@ jobs:
1.21.2
1.21.4
1.21.5
1.21.6
java: 17
- name: 'Fabric 1.21.1: Publish to Modrinth & CurseForge 🧵'
uses: WiIIiam278/mc-publish@hangar
@@ -185,4 +190,31 @@ jobs:
fabric
game-versions: |
1.21.5
java: 21
- name: 'Fabric 1.21.6: Publish to Modrinth & CurseForge 🧵'
uses: WiIIiam278/mc-publish@hangar
with:
modrinth-id: J6U9o3JG
modrinth-featured: false
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 849217
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
dependencies: |
fabric-api | requires | *
dynmap | suggests | *
bluemap | suggests | *
pl3xmap | suggests | *
luckperms | suggests | *
plan | suggests | *
impactor | suggests | *
placeholder-api | suggests | *
files-primary: target/HuskHomes-Fabric-${{ github.event.release.tag_name }}+mc.1.21.6.jar
name: HuskHomes (Fabric) v${{ github.event.release.tag_name }}
version: ${{ github.event.release.tag_name }}
version-type: release
changelog: ${{ github.event.release.body }}
loaders: |
fabric
game-versions: |
1.21.6
java: 21
+1 -1
View File
@@ -5,7 +5,7 @@ dependencies {
implementation 'io.papermc:paperlib:1.0.8'
implementation 'space.arim.morepaperlib:morepaperlib:0.4.4'
implementation 'net.kyori:adventure-platform-bukkit:4.4.0'
implementation 'net.william278.toilet:toilet-bukkit:1.0.13'
implementation 'net.william278.toilet:toilet-bukkit:1.0.14'
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
compileOnly 'org.jetbrains:annotations:26.0.2'
+1 -1
View File
@@ -15,7 +15,7 @@ dependencies {
exclude module: 'slf4j-api'
}
compileOnlyApi 'net.william278.toilet:toilet-common:1.0.13'
compileOnlyApi 'net.william278.toilet:toilet-common:1.0.14'
compileOnly 'org.jetbrains:annotations:26.0.2'
compileOnly 'com.google.guava:guava:33.4.8-jre'
+1 -1
View File
@@ -1,7 +1,7 @@
essential.defaults.loom.mappings=net.fabricmc:yarn:1.21.1+build.3:v2
fabric_loader_version=0.16.10
fabric_api_version=0.115.4+1.21.1
fabric_api_version=0.116.3+1.21.1
fabric_permissions_api_version=0.3.1
fabric_adventure_platform_version=5.14.1
fabric_impactor_api_version=5.3.0
+1 -1
View File
@@ -1,7 +1,7 @@
essential.defaults.loom.mappings=net.fabricmc:yarn:1.21.4+build.8:v2
fabric_loader_version=0.16.10
fabric_api_version=0.116.1+1.21.4
fabric_api_version=0.119.3+1.21.4
fabric_permissions_api_version=0.3.3
fabric_adventure_platform_version=6.3.0
fabric_impactor_api_version=5.3.0
+1 -1
View File
@@ -5,4 +5,4 @@ fabric_api_version=0.122.0+1.21.5
fabric_permissions_api_version=0.3.3
fabric_adventure_platform_version=6.4.0
fabric_impactor_api_version=5.3.0
fabric_placeholder_api_version=2.6.3+1.21.5
fabric_placeholder_api_version=2.6.4+1.21.5
+8
View File
@@ -0,0 +1,8 @@
essential.defaults.loom.mappings=net.fabricmc:yarn:1.21.6+build.1:v2
fabric_loader_version=0.16.14
fabric_api_version=0.127.1+1.21.6
fabric_permissions_api_version=0.4.0
fabric_adventure_platform_version=6.5.0-SNAPSHOT
fabric_impactor_api_version=5.3.4
fabric_placeholder_api_version=2.7.0+1.21.6
+1 -1
View File
@@ -16,7 +16,7 @@ dependencies {
modImplementation include("me.lucko:fabric-permissions-api:${fabric_permissions_api_version}")
modImplementation include("eu.pb4:placeholder-api:${fabric_placeholder_api_version}")
modImplementation include("net.impactdev.impactor.api:economy:${fabric_impactor_api_version}")
modImplementation include("net.william278.toilet:toilet-fabric:1.0.13+$project.name")
modImplementation include("net.william278.toilet:toilet-fabric:1.0.14+$project.name")
modImplementation include("com.github.PokeSkies:FabricPluginMessaging:f621c4fcf6")
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_api_version}"
+1 -1
View File
@@ -1 +1 @@
1.21.5
1.21.6
+4 -2
View File
@@ -3,11 +3,13 @@ plugins {
}
preprocess {
def fabric12106 = createNode("1.21.6", 12106, "yarn")
def fabric12105 = createNode("1.21.5", 12105, "yarn")
def fabric12104 = createNode("1.21.4", 12104, "yarn")
def fabric12101 = createNode("1.21.1", 12101, "yarn")
strictExtraMappings.set(true)
fabric12104.link(fabric12105, null)
fabric12101.link(fabric12105, null)
fabric12105.link(fabric12106, null)
fabric12104.link(fabric12106, null)
fabric12101.link(fabric12106, null)
}
@@ -65,7 +65,8 @@ public class FabricCommand {
final Map<String, Boolean> permissions = command.getAdditionalPermissions();
permissions.forEach((permission, isOp) -> plugin.getPermissions().put(permission, isOp));
PermissionCheckEvent.EVENT.register((player, node) -> {
if (permissions.containsKey(node) && permissions.get(node) && player.hasPermissionLevel(3)) {
if (permissions.containsKey(node) && permissions.get(node) &&
(!(player instanceof ServerCommandSource source) || source.hasPermissionLevel(3))) {
return TriState.TRUE;
}
return TriState.DEFAULT;
@@ -61,12 +61,21 @@ public class FabricUser extends OnlineUser {
public Position getPosition() {
return FabricHuskHomes.Adapter.adapt(
player.getPos(),
player.getServerWorld(),
getServerWorld(player),
player.getYaw(), player.getPitch(),
plugin.getServerName()
);
}
@NotNull
private ServerWorld getServerWorld(ServerPlayerEntity player) {
//#if MC <=12104
//$$ return player.getServerWorld();
//#else
return player.getWorld();
//#endif
}
@Override
public Optional<Position> getBedSpawnPosition() {
//#if MC<=12104