mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-12-18 16:17:45 +01:00
metadata
This commit is contained in:
parent
3252d48383
commit
d99c5f5e60
@ -4,7 +4,6 @@ import nl.matsv.viabackwards.ViaBackwards;
|
|||||||
import nl.matsv.viabackwards.api.entities.storage.EntityData;
|
import nl.matsv.viabackwards.api.entities.storage.EntityData;
|
||||||
import nl.matsv.viabackwards.api.entities.storage.MetaStorage;
|
import nl.matsv.viabackwards.api.entities.storage.MetaStorage;
|
||||||
import nl.matsv.viabackwards.api.entities.types.AbstractEntityType;
|
import nl.matsv.viabackwards.api.entities.types.AbstractEntityType;
|
||||||
import nl.matsv.viabackwards.api.entities.types.EntityType1_12;
|
|
||||||
import nl.matsv.viabackwards.api.entities.types.EntityType1_13;
|
import nl.matsv.viabackwards.api.entities.types.EntityType1_13;
|
||||||
import nl.matsv.viabackwards.api.entities.types.EntityType1_14;
|
import nl.matsv.viabackwards.api.entities.types.EntityType1_14;
|
||||||
import nl.matsv.viabackwards.api.rewriters.EntityRewriter;
|
import nl.matsv.viabackwards.api.rewriters.EntityRewriter;
|
||||||
@ -277,18 +276,18 @@ public class EntityPackets1_14 extends EntityRewriter<Protocol1_13_2To1_14> {
|
|||||||
}
|
}
|
||||||
return e.getData();
|
return e.getData();
|
||||||
});
|
});
|
||||||
// Remove entity pose
|
|
||||||
registerMetaHandler().filter(EntityType1_14.EntityType.ENTITY, true, 6).removed();
|
|
||||||
registerMetaHandler().filter(EntityType1_14.EntityType.ENTITY, true).handle(e -> {
|
|
||||||
if (e.getIndex() > 6) e.getData().setId(e.getIndex() - 1);
|
|
||||||
return e.getData();
|
|
||||||
});
|
|
||||||
// Remove bed location - todo send sleep packet
|
// Remove bed location - todo send sleep packet
|
||||||
registerMetaHandler().filter(EntityType1_14.EntityType.LIVINGENTITY, true, 12).removed();
|
registerMetaHandler().filter(EntityType1_14.EntityType.LIVINGENTITY, true, 12).removed();
|
||||||
registerMetaHandler().filter(EntityType1_14.EntityType.LIVINGENTITY, true).handle(e -> {
|
registerMetaHandler().filter(EntityType1_14.EntityType.LIVINGENTITY, true).handle(e -> {
|
||||||
if (e.getIndex() > 12) e.getData().setId(e.getIndex() - 1);
|
if (e.getIndex() > 12) e.getData().setId(e.getIndex() - 1);
|
||||||
return e.getData();
|
return e.getData();
|
||||||
});
|
});
|
||||||
|
// Remove entity pose
|
||||||
|
registerMetaHandler().filter(EntityType1_14.EntityType.ENTITY, true, 6).removed();
|
||||||
|
registerMetaHandler().filter(EntityType1_14.EntityType.ENTITY, true).handle(e -> {
|
||||||
|
if (e.getIndex() > 6) e.getData().setId(e.getIndex() - 1);
|
||||||
|
return e.getData();
|
||||||
|
});
|
||||||
registerMetaHandler().filter(EntityType1_14.EntityType.CAT, 13).removed();
|
registerMetaHandler().filter(EntityType1_14.EntityType.CAT, 13).removed();
|
||||||
registerMetaHandler().filter(EntityType1_14.EntityType.CAT, 14).removed();
|
registerMetaHandler().filter(EntityType1_14.EntityType.CAT, 14).removed();
|
||||||
registerMetaHandler().filter(EntityType1_14.EntityType.CAT, 15).removed();
|
registerMetaHandler().filter(EntityType1_14.EntityType.CAT, 15).removed();
|
||||||
|
Loading…
Reference in New Issue
Block a user