mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
feat: add support for Minecraft 1.21.6
This commit is contained in:
13 files changed
+96
-11
No files matched your search
@@ -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,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
|
||||
|
||||
@@ -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
|
||||
@@ -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
@@ -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
@@ -1 +1 @@
|
||||
1.21.5
|
||||
1.21.6
|
||||
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user