From 7442d1c4a565b65f284bbf54f50a586a0c479516 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 3 Apr 2012 17:39:55 -0700 Subject: [PATCH] Fixed bug with mmoedit and offline users --- Changelog.txt | 1 + .../com/gmail/nossr50/commands/general/MmoeditCommand.java | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 98c72f67e..bba875f92 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -19,6 +19,7 @@ Version 1.3.05-dev = Fixed bug where rare Treasures from Excavation were dropping too often = Fixed bug where Skull Splitter & Serrated Strikes could be used without permissions. = Fixed bug where API functions were set to static + = Fixed bug where mmoedit threw errors when modifying an offline user ! Changed Tree Feller to account for ability durability loss but not leaves. ! Changed bypass node for Arcane Forging to not default to true for OPs - Removed Ignition from Archery diff --git a/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java b/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java index 74fc3112d..d437f63a5 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java @@ -40,10 +40,8 @@ public class MmoeditCommand implements CommandExecutor { if(Users.players.containsKey(args[0].toLowerCase())) { PPt = Users.players.get(args[0].toLowerCase()); - } - - if(PPt == null) - Users.getOfflineProfile(args[0]); //Only grab offline profile if the above failed + } else + PPt = Users.getOfflineProfile(args[0]); //Only grab offline profile if the above failed if(!PPt.isLoaded()) {