Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Require 1.17.1 or greater
Dieser Commit ist enthalten in:
Ursprung
7660ebb48b
Commit
fcbd90c4d6
@ -2,13 +2,13 @@
|
|||||||
org.gradle.jvmargs=-Xmx1G
|
org.gradle.jvmargs=-Xmx1G
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://modmuss50.me/fabric.html
|
# check these on https://modmuss50.me/fabric.html
|
||||||
minecraft_version=1.17-rc1
|
minecraft_version=1.17.1
|
||||||
yarn_mappings=1.17-rc1+build.5
|
yarn_mappings=1.17.1+build.14
|
||||||
loader_version=0.11.3
|
loader_version=0.11.6
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.4.0-SNAPSHOT
|
mod_version=1.4.0-SNAPSHOT
|
||||||
maven_group=org.geysermc.platform
|
maven_group=org.geysermc.platform
|
||||||
archives_base_name=Geyser-Fabric
|
archives_base_name=Geyser-Fabric
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# check this on https://modmuss50.me/fabric.html
|
# check this on https://modmuss50.me/fabric.html
|
||||||
fabric_version=0.34.9+1.17
|
fabric_version=0.37.0+1.17
|
||||||
|
@ -66,11 +66,10 @@ public class GeyserFabricWorldManager extends GeyserWorldManager {
|
|||||||
PlayerEntity player = server.getPlayerManager().getPlayer(session.getPlayerEntity().getUuid());
|
PlayerEntity player = server.getPlayerManager().getPlayer(session.getPlayerEntity().getUuid());
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
BlockEntity blockEntity = player.world.getBlockEntity(new BlockPos(x, y, z));
|
BlockEntity blockEntity = player.world.getBlockEntity(new BlockPos(x, y, z));
|
||||||
if (!(blockEntity instanceof LecternBlockEntity)) {
|
if (!(blockEntity instanceof LecternBlockEntity lectern)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LecternBlockEntity lectern = (LecternBlockEntity) blockEntity;
|
|
||||||
if (!lectern.hasBook()) {
|
if (!lectern.hasBook()) {
|
||||||
if (!isChunkLoad) {
|
if (!isChunkLoad) {
|
||||||
BlockEntityUtils.updateBlockEntity(session, LecternInventoryTranslator.getBaseLecternTag(x, y, z, 0).build(), Vector3i.from(x, y, z));
|
BlockEntityUtils.updateBlockEntity(session, LecternInventoryTranslator.getBaseLecternTag(x, y, z, 0).build(), Vector3i.from(x, y, z));
|
||||||
@ -88,8 +87,8 @@ public class GeyserFabricWorldManager extends GeyserWorldManager {
|
|||||||
.putShort("Damage", (short) 0)
|
.putShort("Damage", (short) 0)
|
||||||
.putString("Name", "minecraft:writable_book");
|
.putString("Name", "minecraft:writable_book");
|
||||||
List<NbtMap> pages = new ArrayList<>(hasBookPages ? pageCount : 1);
|
List<NbtMap> pages = new ArrayList<>(hasBookPages ? pageCount : 1);
|
||||||
if (hasBookPages && WritableBookItem.isValid(book.getTag())) {
|
if (hasBookPages && WritableBookItem.isValid(book.getNbt())) {
|
||||||
NbtList listTag = book.getTag().getList("pages", 8);
|
NbtList listTag = book.getNbt().getList("pages", 8);
|
||||||
|
|
||||||
for (int i = 0; i < listTag.size(); i++) {
|
for (int i = 0; i < listTag.size(); i++) {
|
||||||
String page = listTag.getString(i);
|
String page = listTag.getString(i);
|
||||||
|
BIN
bootstrap/fabric/src/main/resources/assets/geyser-fabric/icon.png
Normale Datei
BIN
bootstrap/fabric/src/main/resources/assets/geyser-fabric/icon.png
Normale Datei
Binäre Datei nicht angezeigt.
Nachher Breite: | Höhe: | Größe: 113 KiB |
@ -25,6 +25,6 @@
|
|||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.11.3",
|
"fabricloader": ">=0.11.3",
|
||||||
"fabric": "*",
|
"fabric": "*",
|
||||||
"minecraft": "1.17.x"
|
"minecraft": ">=1.17.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren