Skip to content

Commit 454eb2a

Browse files
committed
Update to 1.21.6-1.21.8
1 parent a2332a8 commit 454eb2a

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

gradle.properties

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Project Specifics
2-
projectVersion=0.9.5
2+
projectVersion=0.9.6
33
modrinthId=G9eJHDO2
44

55
# Minecraft
6-
minecraftVersion=1.21.5
7-
minecraftRequired=>=1.21.5-
8-
minecraftCompatible=1.21.5
9-
yarnMappings=1.21.5+build.1
10-
loaderVersion=0.16.10
11-
fabricApiVersion=0.119.6+1.21.5
12-
polymerVersion=0.12.1+1.21.5-rc2
6+
minecraftVersion=1.21.6
7+
minecraftRequired=>=1.21.6- <1.21.9
8+
minecraftCompatible=1.21.6
9+
yarnMappings=1.21.6+build.1
10+
loaderVersion=0.17.3
11+
fabricApiVersion=0.128.2+1.21.6
12+
polymerVersion=0.13.7+1.21.8
1313

1414
# Plugins
1515
systemProp.loomVersion=1.10.+

src/main/java/gay/ampflower/polysit/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void onInitializeClient() {
3232
final var play = client.getNetworkHandler();
3333

3434
if (play != null && play.getCommandDispatcher().findNode(List.of("sit")) != null) {
35-
play.sendCommand("sit");
35+
play.sendChatCommand("sit");
3636
}
3737
}
3838
});

src/main/java/gay/ampflower/polysit/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class Main {
6868
private static final double[] OFFSET_DELTA = { 0, UPDATE_HEIGHT_OFFSET };
6969

7070
static {
71-
final var currentVersion = SharedConstants.getGameVersion().getSaveVersion().getId();
71+
final var currentVersion = SharedConstants.WORLD_VERSION;
7272

7373
// No need to pollute the class fields.
7474
final double verticalSolidOffset = -0.20D;

src/main/java/gay/ampflower/polysit/SeatEntity.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
import net.minecraft.entity.attribute.EntityAttributes;
1414
import net.minecraft.entity.damage.DamageSource;
1515
import net.minecraft.entity.data.DataTracker;
16-
import net.minecraft.nbt.NbtCompound;
1716
import net.minecraft.network.packet.s2c.play.EntityAttributesS2CPacket;
1817
import net.minecraft.registry.tag.DamageTypeTags;
1918
import net.minecraft.server.network.ServerPlayerEntity;
2019
import net.minecraft.server.world.ServerWorld;
20+
import net.minecraft.storage.ReadView;
21+
import net.minecraft.storage.WriteView;
2122
import net.minecraft.util.math.BlockPos;
2223
import net.minecraft.world.World;
2324
import org.jetbrains.annotations.Nullable;
@@ -102,7 +103,7 @@ protected void initDataTracker(final DataTracker.Builder builder) {
102103
}
103104

104105
@Override
105-
protected void readCustomDataFromNbt(NbtCompound nbt) {
106+
protected void readCustomData(final ReadView nbt) {
106107
// Avoids setting position on entity init
107108
final var version = nbt.getInt(Main.VERSION_TAG_NAME, 0);
108109
if (version != Main.RUNTIME_VERSION) {
@@ -113,7 +114,7 @@ protected void readCustomDataFromNbt(NbtCompound nbt) {
113114
}
114115

115116
@Override
116-
protected void writeCustomDataToNbt(NbtCompound nbt) {
117+
protected void writeCustomData(final WriteView nbt) {
117118
nbt.putInt(Main.VERSION_TAG_NAME, Main.RUNTIME_VERSION);
118119
}
119120

0 commit comments

Comments
 (0)