mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
packets: Fix converting ServerboundCustomClickActionPacket
This commit is contained in:
@@ -78,9 +78,11 @@ public class PacketListenerImpl extends FS_PacketListener {
|
||||
ServerboundCustomClickActionPacket customClickActionPacket = (ServerboundCustomClickActionPacket) packet;
|
||||
|
||||
Map<String, String> payload = new HashMap<>();
|
||||
customClickActionPacket.payload().get().asCompound().get().forEach((k, t) -> {
|
||||
payload.put(k, t.asString().get());
|
||||
});
|
||||
if (customClickActionPacket.payload().isPresent() && customClickActionPacket.payload().get().asCompound().isPresent()) {
|
||||
customClickActionPacket.payload().get().asCompound().get().forEach((k, v) -> {
|
||||
payload.put(k, v.toString());
|
||||
});
|
||||
}
|
||||
|
||||
return new FS_ServerboundCustomClickActionPacket(
|
||||
type,
|
||||
|
||||
Reference in New Issue
Block a user