From c429e0e832584f15a5e890e97baf0492e1b9ac92 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 10 Dec 2014 20:54:41 -0500 Subject: [PATCH] v0.2.3: bugfix --- .../shatteredpixeldungeon/items/artifacts/Artifact.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java index 726b74298..f87eb4956 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java @@ -208,10 +208,10 @@ public class Artifact extends KindofMisc { //converts class names to be more concise and readable. protected String convertName(String className){ //removes known redundant parts of names. - className.replaceFirst("ScrollOf|PotionOf", ""); + className = className.replaceFirst("ScrollOf|PotionOf", ""); //inserts a space infront of every uppercase character - className.replaceAll("(\\p{Ll})(\\p{Lu})", "$1 $2"); + className = className.replaceAll("(\\p{Ll})(\\p{Lu})", "$1 $2"); return className; };