Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Add missing conditions to 1.20.5 item type writing (#3913)
Dieser Commit ist enthalten in:
Ursprung
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;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren