mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 03:25:13 +01:00
Fix jrbuddas reported bugs
This commit is contained in:
parent
6b2b11b90d
commit
93d1c35305
@ -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(
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user