mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 03:25:11 +01:00
Add missing conditions to 1.20.5 item type writing (#3913)
This commit is contained in:
parent
bb48dc90f9
commit
d43ad37663
@ -82,7 +82,7 @@ public class ItemType1_20_5 extends Type<Item> {
|
||||
|
||||
@Override
|
||||
public void write(final ByteBuf buffer, @Nullable final Item object) {
|
||||
if (object == null) {
|
||||
if (object == null || object.identifier() == 0 || object.amount() <= 0) {
|
||||
Types.VAR_INT.writePrimitive(buffer, 0);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user