mirror of
https://github.com/songoda/EpicFarming.git
synced 2025-01-09 09:48:18 +01:00
Pushing more changes.
This commit is contained in:
parent
a850399d8b
commit
9a7c589321
@ -26,7 +26,7 @@ public class InventoryListeners implements Listener {
|
|||||||
public void onInventoryClick(InventoryClickEvent event) {
|
public void onInventoryClick(InventoryClickEvent event) {
|
||||||
try {
|
try {
|
||||||
if (instance.getPlayerActionManager().getPlayerAction((Player)event.getWhoClicked()).getFarm() == null
|
if (instance.getPlayerActionManager().getPlayerAction((Player)event.getWhoClicked()).getFarm() == null
|
||||||
|| event.getInventory() == null) return;
|
|| event.getInventory() == null || event.getRawSlot() >= event.getView().getTopInventory().getSize()) return;
|
||||||
|
|
||||||
|
|
||||||
if (event.getInventory().getType() != InventoryType.CHEST) return;
|
if (event.getInventory().getType() != InventoryType.CHEST) return;
|
||||||
|
@ -170,7 +170,6 @@ public class SettingsManager implements Listener {
|
|||||||
lore.add(Arconix.pl().getApi().format().formatText("&c" + false));
|
lore.add(Arconix.pl().getApi().format().formatText("&c" + false));
|
||||||
else
|
else
|
||||||
lore.add(Arconix.pl().getApi().format().formatText("&a" + true));
|
lore.add(Arconix.pl().getApi().format().formatText("&a" + true));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "java.lang.String":
|
case "java.lang.String":
|
||||||
item.setType(Material.PAPER);
|
item.setType(Material.PAPER);
|
||||||
|
Loading…
Reference in New Issue
Block a user