Update for 1.17-rc1 and use Java 16

This commit is contained in:
Camotoy 2021-06-07 12:33:54 -04:00
parent 91f2c3796f
commit 28fb957fd9
7 changed files with 19 additions and 21 deletions

View file

@ -35,7 +35,7 @@ import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.WritableBookItem;
import net.minecraft.item.WrittenBookItem;
import net.minecraft.nbt.ListTag;
import net.minecraft.nbt.NbtList;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;
import org.geysermc.connector.network.session.GeyserSession;
@ -89,7 +89,7 @@ public class GeyserFabricWorldManager extends GeyserWorldManager {
.putString("Name", "minecraft:writable_book");
List<NbtMap> pages = new ArrayList<>(hasBookPages ? pageCount : 1);
if (hasBookPages && WritableBookItem.isValid(book.getTag())) {
ListTag listTag = book.getTag().getList("pages", 8);
NbtList listTag = book.getTag().getList("pages", 8);
for (int i = 0; i < listTag.size(); i++) {
String page = listTag.getString(i);

View file

@ -23,8 +23,8 @@
"geyser-fabric.mixins.json"
],
"depends": {
"fabricloader": ">=0.10.1+build.209",
"fabricloader": ">=0.11.3",
"fabric": "*",
"minecraft": ">=1.16.3"
"minecraft": "1.17.x"
}
}

View file

@ -1,7 +1,7 @@
{
"required": true,
"package": "org.geysermc.platform.fabric.mixin",
"compatibilityLevel": "JAVA_8",
"compatibilityLevel": "JAVA_16",
"client": [
"client.IntegratedServerMixin"
],