mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-09 06:04:59 +00:00
fix handling empty messages
This commit is contained in:
@@ -70,7 +70,9 @@ public class VillagerTrade implements Listener {
|
||||
// if the player shift clicks, show the warning
|
||||
if (event.isShiftClick()) {
|
||||
Component component = toolStats.configTools.formatLore("shift-click-warning.trading", null, null);
|
||||
event.getWhoClicked().sendMessage(component);
|
||||
if (component != null) {
|
||||
event.getWhoClicked().sendMessage(component);
|
||||
}
|
||||
}
|
||||
ItemStack newItem = addLore(item, player);
|
||||
if (newItem != null) {
|
||||
|
||||
Reference in New Issue
Block a user