Handle new wolf colors

This commit is contained in:
Matsv 2019-01-20 12:06:24 +01:00
parent be8c1b69dc
commit 404dce4a32

View File

@ -460,6 +460,15 @@ public class EntityPackets1_13 extends EntityRewriter<Protocol1_12_2To1_13> {
// Remove Trident special loyalty level // Remove Trident special loyalty level
registerMetaHandler().filter(EntityType.TRIDENT, 7).removed(); registerMetaHandler().filter(EntityType.TRIDENT, 7).removed();
// Handle new wolf colors
registerMetaHandler().filter(EntityType.WOLF, 17).handle(e -> {
Metadata meta = e.getData();
meta.setValue(15 - (int) meta.getValue());
return meta;
});
// Rewrite AreaEffectCloud // Rewrite AreaEffectCloud
registerMetaHandler().filter(EntityType.AREA_EFFECT_CLOUD, 9).handle(e -> { registerMetaHandler().filter(EntityType.AREA_EFFECT_CLOUD, 9).handle(e -> {
Metadata meta = e.getData(); Metadata meta = e.getData();