mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
actually transfer the beehive buffer's data
This commit is contained in:
@@ -111,10 +111,10 @@ index 0000000000000000000000000000000000000000..27689754565bf048d1206d540913495d
|
||||
+}
|
||||
diff --git a/src/main/java/org/purpurmc/purpur/task/BeehiveTask.java b/src/main/java/org/purpurmc/purpur/task/BeehiveTask.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..e20fa234520c42e4d32a2a634fc0a2938904f983
|
||||
index 0000000000000000000000000000000000000000..56fc359ea32228c2589ac30c9d00a9c4bea30db7
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/org/purpurmc/purpur/task/BeehiveTask.java
|
||||
@@ -0,0 +1,66 @@
|
||||
@@ -0,0 +1,67 @@
|
||||
+package org.purpurmc.purpur.task;
|
||||
+
|
||||
+import io.netty.buffer.Unpooled;
|
||||
@@ -178,6 +178,7 @@ index 0000000000000000000000000000000000000000..e20fa234520c42e4d32a2a634fc0a293
|
||||
+ FriendlyByteBuf friendlyByteBuf = new FriendlyByteBuf(Unpooled.buffer());
|
||||
+ ClientboundBeehivePayload.STREAM_CODEC.encode(friendlyByteBuf, customPacketPayload);
|
||||
+ byte[] byteArray = new byte[friendlyByteBuf.readableBytes()];
|
||||
+ friendlyByteBuf.readBytes(byteArray);
|
||||
+ player.sendPluginMessage(this.plugin, customPacketPayload.type().id().toString(), byteArray);
|
||||
+ }
|
||||
+}
|
||||
|
||||
Reference in New Issue
Block a user