Fix vindicator meta casting

Fixes #226
This commit is contained in:
KennyTV 2020-07-09 14:55:52 +02:00
parent f5bb30559d
commit 00172ee675
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -297,9 +297,7 @@ public class EntityPackets1_11 extends LegacyEntityRewriter<Protocol1_10To1_11>
Metadata data = e.getData();
data.setId(13);
data.setMetaType(MetaType1_9.VarInt);
data.setValue((int) data.getValue() == 1 ? 2 : 4);
data.setValue(((Number) data.getValue()).intValue() == 1 ? 2 : 4);
return data;
});