Updated VV API usage

This commit is contained in:
RaphiMC 2024-09-30 19:42:39 +02:00
parent bf307796c7
commit 4478086410
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94

View file

@ -138,7 +138,7 @@ public abstract class MixinBlockItemPacketRewriter1_20_5 extends ItemRewriter<Cl
if (user.getProtocolInfo().serverProtocolVersion().olderThanOrEqualTo(LegacyProtocolVersion.b1_7tob1_7_3)) { if (user.getProtocolInfo().serverProtocolVersion().olderThanOrEqualTo(LegacyProtocolVersion.b1_7tob1_7_3)) {
if (this.foodItems_b1_7_3.contains(identifier)) { if (this.foodItems_b1_7_3.contains(identifier)) {
data.set(StructuredDataKey.MAX_STACK_SIZE, 1); data.set(StructuredDataKey.MAX_STACK_SIZE, 1);
data.addEmpty(StructuredDataKey.FOOD1_20_5); data.setEmpty(StructuredDataKey.FOOD1_20_5);
} }
} }