Skip to content

Commit 8d417d2

Browse files
committed
Update to 1.21.11
1 parent d2506b1 commit 8d417d2

20 files changed

+110
-378
lines changed

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ dependencies {
5050
include modImplementation("dev.xpple:betterconfig-fabric:${project.betterconfig_version}")
5151
include modImplementation("dev.xpple:simplewaypoints:${project.simplewaypoints_version}")
5252

53-
modRuntimeOnly("me.djtheredstoner:DevAuth-fabric:${project.devauth_version}") {
54-
exclude group: 'net.fabricmc', module: 'fabric-loader'
55-
}
56-
productionRuntimeMods("me.djtheredstoner:DevAuth-fabric:${project.devauth_version}") {
57-
exclude group: 'net.fabricmc', module: 'fabric-loader'
58-
}
53+
// modRuntimeOnly("me.djtheredstoner:DevAuth-fabric:${project.devauth_version}") {
54+
// exclude group: 'net.fabricmc', module: 'fabric-loader'
55+
// }
56+
// productionRuntimeMods("me.djtheredstoner:DevAuth-fabric:${project.devauth_version}") {
57+
// exclude group: 'net.fabricmc', module: 'fabric-loader'
58+
// }
5959

6060
testImplementation platform("org.junit:junit-bom:${project.junit_version}")
6161
testImplementation 'org.junit.jupiter:junit-jupiter'

gradle.properties

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ maven_group=dev.xpple
88
archives_base_name=seedmapper
99

1010
# Minecraft properties
11-
minecraft_version=1.21.10
12-
minecraft_version_dependency=>=1.21.10 <1.22
11+
minecraft_version=1.21.11-rc3
12+
minecraft_version_dependency=>=1.21.11-rc.3 <1.22
1313

1414
# Fabric Properties
1515
# check these on https://fabricmc.net/develop
1616
# https://maven.parchmentmc.org/org/parchmentmc/data/
17-
fabric_api_version=0.138.3+1.21.10
17+
fabric_api_version=0.139.4+1.21.11
1818
parchment_mappings=parchment-1.21.9:2025.10.05@zip
19-
fabric_loader_version=0.17.3
20-
fabric_loom_version=1.13-SNAPSHOT
19+
fabric_loader_version=0.18.1
20+
fabric_loom_version=1.14-SNAPSHOT
2121

2222
# Library dependencies
2323
betterconfig_version=2.5.0
24-
clientarguments_version=1.11.5
25-
simplewaypoints_version=1.1.0
24+
clientarguments_version=1.11.6
25+
simplewaypoints_version=1.2.0
2626

2727
devauth_version=1.2.1
2828

includes.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
--include-constant MC_1_21_5
123123
--include-constant MC_1_21_6
124124
--include-constant MC_1_21_9
125+
--include-constant MC_1_21_11
125126
--include-constant MC_1_21_WD
126127
--include-constant MC_1_2_5
127128
--include-constant MC_1_3
@@ -705,6 +706,7 @@
705706
--include-constant ITEM_COOKED_PORKCHOP
706707
--include-constant ITEM_COOKED_SALMON
707708
--include-constant ITEM_COPPER_HORSE_ARMOR
709+
--include-constant ITEM_COPPER_NAUTILUS_ARMOR
708710
--include-constant ITEM_CROSSBOW
709711
--include-constant ITEM_CRYING_OBSIDIAN
710712
--include-constant ITEM_DARK_OAK_LOG
@@ -714,8 +716,10 @@
714716
--include-constant ITEM_DIAMOND_HELMET
715717
--include-constant ITEM_DIAMOND_HORSE_ARMOR
716718
--include-constant ITEM_DIAMOND_LEGGINGS
719+
--include-constant ITEM_DIAMOND_NAUTILUS_ARMOR
717720
--include-constant ITEM_DIAMOND_PICKAXE
718721
--include-constant ITEM_DIAMOND_SHOVEL
722+
--include-constant ITEM_DIAMOND_SPEAR
719723
--include-constant ITEM_DIAMOND_SWORD
720724
--include-constant ITEM_DUNE_ARMOR_TRIM_SMITHING_TEMPLATE
721725
--include-constant ITEM_EMERALD
@@ -737,6 +741,7 @@
737741
--include-constant ITEM_GOLDEN_HOE
738742
--include-constant ITEM_GOLDEN_HORSE_ARMOR
739743
--include-constant ITEM_GOLDEN_LEGGINGS
744+
--include-constant ITEM_GOLDEN_NAUTILUS_ARMOR
740745
--include-constant ITEM_GOLDEN_PICKAXE
741746
--include-constant ITEM_GOLDEN_SHOVEL
742747
--include-constant ITEM_GOLDEN_SWORD
@@ -753,9 +758,11 @@
753758
--include-constant ITEM_IRON_HORSE_ARMOR
754759
--include-constant ITEM_IRON_INGOT
755760
--include-constant ITEM_IRON_LEGGINGS
761+
--include-constant ITEM_IRON_NAUTILUS_ARMOR
756762
--include-constant ITEM_IRON_NUGGET
757763
--include-constant ITEM_IRON_PICKAXE
758764
--include-constant ITEM_IRON_SHOVEL
765+
--include-constant ITEM_IRON_SPEAR
759766
--include-constant ITEM_IRON_SWORD
760767
--include-constant ITEM_LAPIS_LAZULI
761768
--include-constant ITEM_LEATHER
@@ -797,6 +804,7 @@
797804
--include-constant ITEM_UNKNOWN
798805
--include-constant ITEM_WHEAT
799806
--include-constant ITEM_WILD_ARMOR_TRIM_SMITHING_TEMPLATE
807+
--include-constant NUM_ITEMS
800808

801809
--include-struct EnchantInstance
802810
--include-struct ItemStack

src/main/java/dev/xpple/seedmapper/command/CustomClientCommandSource.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
import net.minecraft.client.multiplayer.ClientSuggestionProvider;
1717
import net.minecraft.client.player.LocalPlayer;
1818
import net.minecraft.network.chat.Component;
19+
import net.minecraft.server.permissions.PermissionSet;
1920
import net.minecraft.world.entity.Entity;
2021
import net.minecraft.world.phys.Vec2;
2122
import net.minecraft.world.phys.Vec3;
23+
import org.jspecify.annotations.Nullable;
2224

2325
import java.util.HashMap;
2426
import java.util.Map;
@@ -34,8 +36,8 @@ public class CustomClientCommandSource extends ClientSuggestionProvider implemen
3436
private final ClientLevel world;
3537
private final Map<String, Object> meta;
3638

37-
public CustomClientCommandSource(ClientPacketListener listener, Minecraft minecraft, Entity entity, Vec3 position, Vec2 rotation, ClientLevel world, Map<String, Object> meta) {
38-
super(listener, minecraft, true);
39+
public CustomClientCommandSource(ClientPacketListener listener, Minecraft minecraft, Entity entity, Vec3 position, Vec2 rotation, ClientLevel world, PermissionSet permissionSet, Map<String, Object> meta) {
40+
super(listener, minecraft, permissionSet);
3941

4042
this.client = minecraft;
4143
this.entity = entity;
@@ -49,7 +51,7 @@ public static CustomClientCommandSource of(FabricClientCommandSource source) {
4951
if (source instanceof CustomClientCommandSource custom) {
5052
return custom;
5153
}
52-
return new CustomClientCommandSource(source.getClient().getConnection(), source.getClient(), source.getEntity(), source.getPosition(), source.getRotation(), source.getWorld(), new HashMap<>());
54+
return new CustomClientCommandSource(source.getClient().getConnection(), source.getClient(), source.getEntity(), source.getPosition(), source.getRotation(), source.getWorld(), source.permissions(), new HashMap<>());
5355
}
5456

5557
@Override
@@ -94,24 +96,24 @@ public ClientLevel getWorld() {
9496
}
9597

9698
@Override
97-
public Object getMeta(String key) {
99+
public @Nullable Object getMeta(String key) {
98100
return this.meta.get(key);
99101
}
100102

101103
public CustomClientCommandSource withEntity(Entity entity) {
102-
return new CustomClientCommandSource(this.client.getConnection(), this.client, entity, this.position, this.rotation, this.world, this.meta);
104+
return new CustomClientCommandSource(this.client.getConnection(), this.client, entity, this.position, this.rotation, this.world, this.permissions(), this.meta);
103105
}
104106

105107
public CustomClientCommandSource withPosition(Vec3 position) {
106-
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, position, this.rotation, this.world, this.meta);
108+
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, position, this.rotation, this.world, this.permissions(), this.meta);
107109
}
108110

109111
public CustomClientCommandSource withRotation(Vec2 rotation) {
110-
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, this.position, rotation, this.world, this.meta);
112+
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, this.position, rotation, this.world, this.permissions(), this.meta);
111113
}
112114

113115
public CustomClientCommandSource withWorld(ClientLevel world) {
114-
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, this.position, this.rotation, world, this.meta);
116+
return new CustomClientCommandSource(this.client.getConnection(), this.client, this.entity, this.position, this.rotation, world, this.permissions(), this.meta);
115117
}
116118

117119
public CustomClientCommandSource withMeta(String key, Object value) {
@@ -146,7 +148,7 @@ public int getDimension() throws CommandSyntaxException {
146148
if (dimensionMeta != null) {
147149
return (int) dimensionMeta;
148150
}
149-
return DimensionArgument.dimension().parse(new StringReader(this.getWorld().dimension().location().getPath()));
151+
return DimensionArgument.dimension().parse(new StringReader(this.getWorld().dimension().identifier().getPath()));
150152
}
151153

152154
public int getVersion() throws CommandSyntaxException {

0 commit comments

Comments
 (0)