mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-05 23:33:36 +00:00
packets: Parse byte nbt tag correctly
This commit is contained in:
@@ -85,6 +85,12 @@ public class PacketListenerImpl extends FS_PacketListener {
|
||||
if (v.asString().isPresent()) {
|
||||
payload.put(k, v.asString().get());
|
||||
}
|
||||
} else if (v.getType().getName().equals(net.minecraft.nbt.ByteTag.TYPE.getName())) {
|
||||
if (v.asBoolean().isPresent()) {
|
||||
payload.put(k, String.valueOf(v.asBoolean().get()));
|
||||
} else if (v.asByte().isPresent()) {
|
||||
payload.put(k, String.valueOf(v.asByte().get()));
|
||||
}
|
||||
} else {
|
||||
payload.put(k, v.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user