From 88727fb473fff1f1040c34ac64c52a2d4153880c Mon Sep 17 00:00:00 2001
From: Camotoy <20743703+Camotoy@users.noreply.github.com>
Date: Tue, 9 Aug 2022 20:30:49 -0400
Subject: [PATCH 1/6] Bump Geyser to version 2.0.7-SNAPSHOT and default Bedrock
to 1.19.20
---
ap/pom.xml | 4 ++--
api/base/pom.xml | 2 +-
api/geyser/pom.xml | 4 ++--
api/pom.xml | 2 +-
bootstrap/bungeecord/pom.xml | 4 ++--
bootstrap/pom.xml | 4 ++--
bootstrap/spigot/pom.xml | 4 ++--
bootstrap/sponge/pom.xml | 4 ++--
bootstrap/standalone/pom.xml | 4 ++--
bootstrap/velocity/pom.xml | 4 ++--
common/pom.xml | 2 +-
core/pom.xml | 8 ++++----
.../org/geysermc/geyser/network/MinecraftProtocol.java | 6 +++---
pom.xml | 2 +-
14 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/ap/pom.xml b/ap/pom.xml
index 90bb1dc73..feb77e922 100644
--- a/ap/pom.xml
+++ b/ap/pom.xml
@@ -6,9 +6,9 @@
org.geysermc
geyser-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
ap
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
\ No newline at end of file
diff --git a/api/base/pom.xml b/api/base/pom.xml
index 0eeb536ea..4e172650e 100644
--- a/api/base/pom.xml
+++ b/api/base/pom.xml
@@ -5,7 +5,7 @@
org.geysermc
api-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
4.0.0
diff --git a/api/geyser/pom.xml b/api/geyser/pom.xml
index 0071668bf..9aa8560d1 100644
--- a/api/geyser/pom.xml
+++ b/api/geyser/pom.xml
@@ -5,7 +5,7 @@
org.geysermc
api-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
4.0.0
@@ -26,7 +26,7 @@
org.geysermc
base-api
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
compile
diff --git a/api/pom.xml b/api/pom.xml
index 9b4816954..79e999c16 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -6,7 +6,7 @@
org.geysermc
geyser-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
api-parent
diff --git a/bootstrap/bungeecord/pom.xml b/bootstrap/bungeecord/pom.xml
index 4ec01539f..5a1e8e262 100644
--- a/bootstrap/bungeecord/pom.xml
+++ b/bootstrap/bungeecord/pom.xml
@@ -6,7 +6,7 @@
org.geysermc
bootstrap-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
bootstrap-bungeecord
@@ -14,7 +14,7 @@
org.geysermc
core
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
compile
diff --git a/bootstrap/pom.xml b/bootstrap/pom.xml
index 0da863811..371ed9bca 100644
--- a/bootstrap/pom.xml
+++ b/bootstrap/pom.xml
@@ -6,7 +6,7 @@
org.geysermc
geyser-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
bootstrap-parent
pom
@@ -34,7 +34,7 @@
org.geysermc
ap
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
provided
diff --git a/bootstrap/spigot/pom.xml b/bootstrap/spigot/pom.xml
index 25bcb23f9..5142d2bc3 100644
--- a/bootstrap/spigot/pom.xml
+++ b/bootstrap/spigot/pom.xml
@@ -6,7 +6,7 @@
org.geysermc
bootstrap-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
bootstrap-spigot
@@ -30,7 +30,7 @@
org.geysermc
core
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
compile
diff --git a/bootstrap/sponge/pom.xml b/bootstrap/sponge/pom.xml
index 25f709ec4..fc7bbc624 100644
--- a/bootstrap/sponge/pom.xml
+++ b/bootstrap/sponge/pom.xml
@@ -6,7 +6,7 @@
org.geysermc
bootstrap-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
bootstrap-sponge
@@ -14,7 +14,7 @@
org.geysermc
core
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
compile
diff --git a/bootstrap/standalone/pom.xml b/bootstrap/standalone/pom.xml
index 5d27c8a2a..5577f9206 100644
--- a/bootstrap/standalone/pom.xml
+++ b/bootstrap/standalone/pom.xml
@@ -6,7 +6,7 @@
org.geysermc
bootstrap-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
bootstrap-standalone
@@ -18,7 +18,7 @@
org.geysermc
core
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
compile
diff --git a/bootstrap/velocity/pom.xml b/bootstrap/velocity/pom.xml
index 0c530b21e..35e6df15b 100644
--- a/bootstrap/velocity/pom.xml
+++ b/bootstrap/velocity/pom.xml
@@ -6,7 +6,7 @@
org.geysermc
bootstrap-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
bootstrap-velocity
@@ -14,7 +14,7 @@
org.geysermc
core
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
compile
diff --git a/common/pom.xml b/common/pom.xml
index 5326ca014..0b1153230 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -6,7 +6,7 @@
org.geysermc
geyser-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
common
diff --git a/core/pom.xml b/core/pom.xml
index 372b5769a..489f99cb3 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -6,7 +6,7 @@
org.geysermc
geyser-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
core
@@ -29,19 +29,19 @@
org.geysermc
ap
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
provided
org.geysermc
geyser-api
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
compile
org.geysermc
common
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
compile
diff --git a/core/src/main/java/org/geysermc/geyser/network/MinecraftProtocol.java b/core/src/main/java/org/geysermc/geyser/network/MinecraftProtocol.java
index e0a06b5e3..3452ec7d5 100644
--- a/core/src/main/java/org/geysermc/geyser/network/MinecraftProtocol.java
+++ b/core/src/main/java/org/geysermc/geyser/network/MinecraftProtocol.java
@@ -45,7 +45,7 @@ public final class MinecraftProtocol {
* Default Bedrock codec that should act as a fallback. Should represent the latest available
* release of the game that Geyser supports.
*/
- public static final BedrockPacketCodec DEFAULT_BEDROCK_CODEC = Bedrock_v534.V534_CODEC;
+ public static final BedrockPacketCodec DEFAULT_BEDROCK_CODEC = Bedrock_v544.V544_CODEC;
/**
* A list of all supported Bedrock versions that can join Geyser
*/
@@ -61,10 +61,10 @@ public final class MinecraftProtocol {
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v527.V527_CODEC.toBuilder()
.minecraftVersion("1.19.0/1.19.2")
.build());
- SUPPORTED_BEDROCK_CODECS.add(DEFAULT_BEDROCK_CODEC.toBuilder()
+ SUPPORTED_BEDROCK_CODECS.add(Bedrock_v534.V534_CODEC.toBuilder()
.minecraftVersion("1.19.10/1.19.11")
.build());
- SUPPORTED_BEDROCK_CODECS.add(Bedrock_v544.V544_CODEC);
+ SUPPORTED_BEDROCK_CODECS.add(DEFAULT_BEDROCK_CODEC);
}
/**
diff --git a/pom.xml b/pom.xml
index 1d99d93e0..c5b293c43 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
org.geysermc
geyser-parent
- 2.0.6-SNAPSHOT
+ 2.0.7-SNAPSHOT
pom
Geyser
Allows for players from Minecraft Bedrock Edition to join Minecraft Java Edition servers.
From ef8130e7c081a19d9ec5ba9c0c58b0584f5e6b0b Mon Sep 17 00:00:00 2001
From: Camotoy <20743703+Camotoy@users.noreply.github.com>
Date: Tue, 9 Aug 2022 20:31:29 -0400
Subject: [PATCH 2/6] Update README
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 49aba79ac..42979bdbe 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ The ultimate goal of this project is to allow Minecraft: Bedrock Edition users t
Special thanks to the DragonProxy project for being a trailblazer in protocol translation and for all the team members who have joined us here!
-### Currently supporting Minecraft Bedrock 1.19.0 - 1.19.10/1.19.11 and Minecraft Java 1.19.1/1.19.2.
+### Currently supporting Minecraft Bedrock 1.19.0/1.19.1x/1.19.20 and Minecraft Java 1.19.1/1.19.2.
## Setting Up
Take a look [here](https://wiki.geysermc.org/geyser/setup/) for how to set up Geyser.
From 25a18a2e4f77adde68e61a7dbdf8039f9ef6ea33 Mon Sep 17 00:00:00 2001
From: David Choo
Date: Tue, 9 Aug 2022 21:35:26 -0400
Subject: [PATCH 3/6] Fix maps not loading in Bedrock (#3218)
---
.../main/java/org/geysermc/geyser/level/BedrockMapIcon.java | 5 +++--
.../protocol/java/level/JavaMapItemDataTranslator.java | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/core/src/main/java/org/geysermc/geyser/level/BedrockMapIcon.java b/core/src/main/java/org/geysermc/geyser/level/BedrockMapIcon.java
index 9f1212875..9bb317996 100644
--- a/core/src/main/java/org/geysermc/geyser/level/BedrockMapIcon.java
+++ b/core/src/main/java/org/geysermc/geyser/level/BedrockMapIcon.java
@@ -33,7 +33,7 @@ public enum BedrockMapIcon {
ICON_ITEM_FRAME(MapIconType.GREEN_ARROW, 7),
ICON_RED_ARROW(MapIconType.RED_ARROW, 2),
ICON_BLUE_ARROW(MapIconType.BLUE_ARROW, 3),
- ICON_TREASURE_MARKER(MapIconType.TREASURE_MARKER, 4),
+ ICON_WHITE_CROSS(MapIconType.WHITE_CROSS, 4, 0, 0, 0), // Doesn't exist on Bedrock, replaced with a black cross
ICON_RED_POINTER(MapIconType.RED_POINTER, 5),
ICON_WHITE_CIRCLE(MapIconType.WHITE_CIRCLE, 6),
ICON_SMALL_WHITE_CIRCLE(MapIconType.SMALL_WHITE_CIRCLE, 13),
@@ -54,7 +54,8 @@ public enum BedrockMapIcon {
ICON_BROWN_BANNER(MapIconType.BROWN_BANNER, 13, 131, 84, 50),
ICON_GREEN_BANNER(MapIconType.GREEN_BANNER, 13, 94, 124, 22),
ICON_RED_BANNER(MapIconType.RED_BANNER, 13, 176, 46, 38),
- ICON_BLACK_BANNER(MapIconType.BLACK_BANNER, 13, 29, 29, 33);
+ ICON_BLACK_BANNER(MapIconType.BLACK_BANNER, 13, 29, 29, 33),
+ ICON_TREASURE_MARKER(MapIconType.TREASURE_MARKER, 4);
private static final BedrockMapIcon[] VALUES = values();
diff --git a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/level/JavaMapItemDataTranslator.java b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/level/JavaMapItemDataTranslator.java
index eb658aa54..495455958 100644
--- a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/level/JavaMapItemDataTranslator.java
+++ b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/level/JavaMapItemDataTranslator.java
@@ -28,6 +28,7 @@ package org.geysermc.geyser.translator.protocol.java.level;
import com.github.steveice10.mc.protocol.data.game.level.map.MapData;
import com.github.steveice10.mc.protocol.data.game.level.map.MapIcon;
import com.github.steveice10.mc.protocol.packet.ingame.clientbound.level.ClientboundMapItemDataPacket;
+import com.nukkitx.math.vector.Vector3i;
import com.nukkitx.protocol.bedrock.data.MapDecoration;
import com.nukkitx.protocol.bedrock.data.MapTrackedObject;
import org.geysermc.geyser.session.GeyserSession;
@@ -48,6 +49,7 @@ public class JavaMapItemDataTranslator extends PacketTranslator
Date: Wed, 10 Aug 2022 16:09:55 -0400
Subject: [PATCH 4/6] Fix sending forms with floodgate for 1.19.20 (#3217)
* Fix sending forms with floodgate
* Comment about 1.19.20
* Swapped if-else
Co-authored-by: Tim203
---
.../java/JavaCustomPayloadTranslator.java | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java
index 13ace5e23..e25285114 100644
--- a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java
+++ b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java
@@ -72,12 +72,19 @@ public class JavaCustomPayloadTranslator extends PacketTranslator {
- byte[] raw = response.getBytes(StandardCharsets.UTF_8);
- byte[] finalData = new byte[raw.length + 2];
+ byte[] finalData;
+ if (response == null) {
+ // Response data can be null as of 1.19.20 (same behaviour as empty response data)
+ // Only need to send the form id
+ finalData = new byte[]{data[1], data[2]};
+ } else {
+ byte[] raw = response.getBytes(StandardCharsets.UTF_8);
+ finalData = new byte[raw.length + 2];
- finalData[0] = data[1];
- finalData[1] = data[2];
- System.arraycopy(raw, 0, finalData, 2, raw.length);
+ finalData[0] = data[1];
+ finalData[1] = data[2];
+ System.arraycopy(raw, 0, finalData, 2, raw.length);
+ }
session.sendDownstreamPacket(new ServerboundCustomPayloadPacket(channel, finalData));
});
From 678e285cd4a78fa9f2f513c299e02f6c6d62753f Mon Sep 17 00:00:00 2001
From: Tim203
Date: Wed, 10 Aug 2022 22:12:05 +0200
Subject: [PATCH 5/6] Bump Cumulus version to 1.1.1
---
common/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/pom.xml b/common/pom.xml
index 0b1153230..67b77a98a 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -20,7 +20,7 @@
org.geysermc.cumulus
cumulus
- 1.1
+ 1.1.1
com.google.code.gson
From 8b57a7c6918893179e097c6f8bc2296e63581b99 Mon Sep 17 00:00:00 2001
From: Tim203
Date: Wed, 10 Aug 2022 22:27:24 +0200
Subject: [PATCH 6/6] Use StandardCharsets instead of Charsets
---
.../floodgate/pluginmessage/PluginMessageChannels.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/src/main/java/org/geysermc/floodgate/pluginmessage/PluginMessageChannels.java b/common/src/main/java/org/geysermc/floodgate/pluginmessage/PluginMessageChannels.java
index f06c0f9da..58281dec8 100644
--- a/common/src/main/java/org/geysermc/floodgate/pluginmessage/PluginMessageChannels.java
+++ b/common/src/main/java/org/geysermc/floodgate/pluginmessage/PluginMessageChannels.java
@@ -25,7 +25,7 @@
package org.geysermc.floodgate.pluginmessage;
-import com.google.common.base.Charsets;
+import java.nio.charset.StandardCharsets;
public final class PluginMessageChannels {
public static final String SKIN = "floodgate:skin";
@@ -35,7 +35,7 @@ public final class PluginMessageChannels {
private static final byte[] FLOODGATE_REGISTER_DATA =
String.join("\0", SKIN, FORM, TRANSFER, PACKET)
- .getBytes(Charsets.UTF_8);
+ .getBytes(StandardCharsets.UTF_8);
/**
* Get the prebuilt register data as a byte array