Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 09:00:09 +01:00
Limit enchantments to 0-255
Dieser Commit ist enthalten in:
Ursprung
f2b9c42590
Commit
e2f3dc7572
@ -1168,7 +1168,7 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
enchantments.enchantments().put(intId, lvl.asInt());
|
enchantments.enchantments().put(intId, clamp(lvl.asInt(), 0, 255));
|
||||||
}
|
}
|
||||||
|
|
||||||
data.set(newKey, enchantments);
|
data.set(newKey, enchantments);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren