From 3b9d56252fc4bbcd3dd578f586e65b9230eb24f8 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Wed, 18 Dec 2019 01:45:26 -0800 Subject: [PATCH] Simplified expression for PathWrapper creation --- core/src/com/riiablo/engine/client/ClientEntityFactory.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/com/riiablo/engine/client/ClientEntityFactory.java b/core/src/com/riiablo/engine/client/ClientEntityFactory.java index 01579a21..ab569c39 100644 --- a/core/src/com/riiablo/engine/client/ClientEntityFactory.java +++ b/core/src/com/riiablo/engine/client/ClientEntityFactory.java @@ -142,9 +142,7 @@ public class ClientEntityFactory extends EntityFactory { mDS1ObjectWrapper.create(id).set(preset.getDS1(), object); - if (object != null && object.path != null) { - mPathWrapper.create(id).path = object.path; - } + if (object.path != null) mPathWrapper.create(id).path = object.path; return id; }