mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-03-28 06:15:43 +01:00
Limit enchantments to 0-255
This commit is contained in:
parent
f2b9c42590
commit
e2f3dc7572
@ -1168,7 +1168,7 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
||||
continue;
|
||||
}
|
||||
|
||||
enchantments.enchantments().put(intId, lvl.asInt());
|
||||
enchantments.enchantments().put(intId, clamp(lvl.asInt(), 0, 255));
|
||||
}
|
||||
|
||||
data.set(newKey, enchantments);
|
||||
|
Loading…
Reference in New Issue
Block a user