mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Geyser-Fabric: bump to 1.20 (#3824)
* add accesswidener, bump to 1.20 * address review * yeet AW, use level() instead * update modrinth version pls work
This commit is contained in:
parent
f3cc93c94e
commit
8b8d6ddb9e
4 changed files with 10 additions and 10 deletions
|
@ -104,11 +104,11 @@ modrinth {
|
|||
syncBodyFrom.set(rootProject.file("README.md").readText())
|
||||
|
||||
uploadFile.set(tasks.getByPath("remapJar"))
|
||||
gameVersions.addAll("1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4")
|
||||
gameVersions.addAll("1.20")
|
||||
|
||||
loaders.add("fabric")
|
||||
|
||||
dependencies {
|
||||
required.project("fabric-api")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ public class GeyserFabricWorldManager extends GeyserWorldManager {
|
|||
return;
|
||||
}
|
||||
|
||||
LevelChunk chunk = player.getLevel().getChunk(x, z);
|
||||
LevelChunk chunk = player.level().getChunk(x, z);
|
||||
final int chunkBlockX = x << 4;
|
||||
final int chunkBlockZ = z << 4;
|
||||
for (int i = 0; i < blockEntityInfos.size(); i++) {
|
||||
|
@ -92,7 +92,7 @@ public class GeyserFabricWorldManager extends GeyserWorldManager {
|
|||
return;
|
||||
}
|
||||
|
||||
BlockEntity blockEntity = player.level.getBlockEntity(new BlockPos(x, y, z));
|
||||
BlockEntity blockEntity = player.level().getBlockEntity(new BlockPos(x, y, z));
|
||||
sendLecternData(session, blockEntity, false);
|
||||
});
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ public class GeyserFabricWorldManager extends GeyserWorldManager {
|
|||
|
||||
BlockPos pos = new BlockPos(x, y, z);
|
||||
// Don't create a new block entity if invalid
|
||||
BlockEntity blockEntity = player.level.getChunkAt(pos).getBlockEntity(pos);
|
||||
BlockEntity blockEntity = player.level().getChunkAt(pos).getBlockEntity(pos);
|
||||
if (blockEntity instanceof BannerBlockEntity banner) {
|
||||
// Potentially exposes other NBT data? But we need to get the NBT data for the banner patterns *and*
|
||||
// the banner might have a custom name, both of which a Java client knows and caches
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
"geyser-fabric.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.8",
|
||||
"fabricloader": ">=0.14.21",
|
||||
"fabric": "*",
|
||||
"minecraft": ">=1.19",
|
||||
"minecraft": ">=1.20",
|
||||
"fabric-permissions-api-v0": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,9 +28,9 @@ commodore = "2.2"
|
|||
bungeecord = "a7c6ede"
|
||||
velocity = "3.0.0"
|
||||
sponge = "8.0.0"
|
||||
fabric-minecraft = "1.19.1"
|
||||
fabric-loader = "0.14.8"
|
||||
fabric-api = "0.58.5+1.19.1"
|
||||
fabric-minecraft = "1.20"
|
||||
fabric-loader = "0.14.21"
|
||||
fabric-api = "0.83.0+1.20"
|
||||
|
||||
[libraries]
|
||||
base-api = { group = "org.geysermc.api", name = "base-api", version.ref = "base-api" }
|
||||
|
|
Loading…
Reference in a new issue