mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2025-01-30 23:11:32 +01:00
Fix invisible illusionator
This commit is contained in:
parent
ce89d1c724
commit
adc84452d5
@ -370,6 +370,16 @@ public class EntityPackets1_12 extends EntityRewriter<Protocol1_11_1To1_12> {
|
|||||||
registerMetaHandler().filter(EntityType.EVOCATION_ILLAGER, true, 12).removed();
|
registerMetaHandler().filter(EntityType.EVOCATION_ILLAGER, true, 12).removed();
|
||||||
registerMetaHandler().filter(EntityType.EVOCATION_ILLAGER, true, 13).handleIndexChange(12);
|
registerMetaHandler().filter(EntityType.EVOCATION_ILLAGER, true, 13).handleIndexChange(12);
|
||||||
|
|
||||||
|
registerMetaHandler().filter(EntityType.ILLUSION_ILLAGER, 0).handle(e -> {
|
||||||
|
byte mask = (byte) e.getData().getValue();
|
||||||
|
|
||||||
|
if ((mask & 0x20) == 0x20)
|
||||||
|
mask &= ~0x20;
|
||||||
|
|
||||||
|
e.getData().setValue(mask);
|
||||||
|
return e.getData();
|
||||||
|
});
|
||||||
|
|
||||||
// Create Parrot storage
|
// Create Parrot storage
|
||||||
registerMetaHandler().filter(EntityType.PARROT, true).handle(e -> {
|
registerMetaHandler().filter(EntityType.PARROT, true).handle(e -> {
|
||||||
if (!e.getEntity().has(ParrotStorage.class))
|
if (!e.getEntity().has(ParrotStorage.class))
|
||||||
|
Loading…
Reference in New Issue
Block a user