Fix jrbuddas reported bugs

This commit is contained in:
fullwall 2012-09-17 17:18:17 +08:00
parent 6b2b11b90d
commit 93d1c35305
2 changed files with 2 additions and 5 deletions

View File

@ -160,6 +160,7 @@ public class NPCCommands {
}
Messaging.sendF(sender, ChatColor.GREEN + "%s has been copied.", StringHelper.wrap(npc.getName()));
selector.select(sender, npc);
}
@Command(

View File

@ -87,6 +87,7 @@ public class Text extends Trait implements Runnable, Toggleable, Listener, Conve
@Override
public void load(DataKey key) throws NPCLoadException {
text.clear();
// TODO: backwards compat, remove later
for (DataKey sub : key.getIntegerSubKeys())
text.add(sub.getString(""));
@ -101,11 +102,6 @@ public class Text extends Trait implements Runnable, Toggleable, Listener, Conve
range = key.getDouble("range", range);
}
@Override
public void onAttach() {
if (text.isEmpty())
populateDefaultText();
}
@EventHandler
public void onRightClick(NPCRightClickEvent event) {