From 6622dbc2fe7463f6b94f9f3d89a1d1ebf3950860 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 2 Dec 2025 16:59:29 -0500 Subject: [PATCH] v3.3.0: fixed a NPE caused by dried rose ghost tweak --- .../shatteredpixeldungeon/items/artifacts/DriedRose.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/DriedRose.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/DriedRose.java index f3f593ee0..eddf84827 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/DriedRose.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/DriedRose.java @@ -581,8 +581,10 @@ public class DriedRose extends Artifact { private void updateRose(){ if (rose == null) { rose = Dungeon.hero.belongings.getItem(DriedRose.class); - rose.ghost = this; - rose.ghostID = id(); + if (rose != null) { + rose.ghost = this; + rose.ghostID = id(); + } } //same dodge as the hero