mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 01:55:47 +01:00
parent
54b0345017
commit
576682ef9f
@ -199,7 +199,7 @@ public class BukkitViaInjector implements ViaInjector {
|
||||
@Override
|
||||
public int getServerProtocolVersion() throws Exception {
|
||||
if (PaperViaInjector.PAPER_PROTOCOL_METHOD) {
|
||||
// *Trust me, it's safe*
|
||||
//noinspection deprecation
|
||||
return Bukkit.getUnsafe().getProtocolVersion();
|
||||
}
|
||||
|
||||
|
@ -209,7 +209,7 @@ public class InventoryPackets {
|
||||
rewriteAttributeName(attribute, "AttributeName", true);
|
||||
rewriteAttributeName(attribute, "Name", true);
|
||||
IntArrayTag uuidTag = attribute.get("UUID");
|
||||
if (uuidTag != null) {
|
||||
if (uuidTag != null && uuidTag.getValue().length == 4) {
|
||||
UUID uuid = UUIDIntArrayType.uuidFromIntArray(uuidTag.getValue());
|
||||
attribute.put("UUIDLeast", new LongTag(uuid.getLeastSignificantBits()));
|
||||
attribute.put("UUIDMost", new LongTag(uuid.getMostSignificantBits()));
|
||||
|
Loading…
Reference in New Issue
Block a user