From b364111df675c25dc21274019f834acd613dd9da Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 27 Sep 2020 15:12:07 +0200 Subject: [PATCH] Fixed block disguises losing their state after loading from a save --- .../minelittlepony/unicopia/entity/behaviour/Disguise.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/behaviour/Disguise.java b/src/main/java/com/minelittlepony/unicopia/entity/behaviour/Disguise.java index 99dd3476..72fec4af 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/behaviour/Disguise.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/behaviour/Disguise.java @@ -129,6 +129,11 @@ public class Disguise implements NbtSerialisable { if (source.isClient()) { entity = EntityType.fromTag(nbt).map(type -> type.create(source.getWorld())).orElse(null); if (entity != null) { + try { + entity.fromTag(nbt); + } catch (Exception ignored) { + // Mojang pls + } entity = EntityBehaviour.forEntity(entity).onCreate(entity, this); } } else {