From 064dc1e2476b7e68277bd41ec5a142e065063c41 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Tue, 4 Jul 2023 17:56:30 +0200 Subject: [PATCH] More NPE Guards --- .../create/content/decoration/copycat/CopycatModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/decoration/copycat/CopycatModel.java b/src/main/java/com/simibubi/create/content/decoration/copycat/CopycatModel.java index 7bd452d99..65280d5ab 100644 --- a/src/main/java/com/simibubi/create/content/decoration/copycat/CopycatModel.java +++ b/src/main/java/com/simibubi/create/content/decoration/copycat/CopycatModel.java @@ -137,7 +137,7 @@ public abstract class CopycatModel extends BakedModelWrapperWithData { @Nullable public static BlockState getMaterial(ModelData data) { - BlockState material = data.get(MATERIAL_PROPERTY); + BlockState material = data == null ? null : data.get(MATERIAL_PROPERTY); return material == null ? AllBlocks.COPYCAT_BASE.getDefaultState() : material; }