mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Fix nullpointerException
Former-commit-id: 5fae2e07a6d8f7c6ac25440485ba77d1a6e25f3a [formerly b8f6ad2d9d9748d557d17c31bf2bb3f022e30b73] Former-commit-id: 64cc0d197ed83f137bb2197f63c8655260229a85
This commit is contained in:
1 parent
e51a301f57
commit
9782a478ec
2 files changed
+1
-2
No files matched your search
@@ -48,7 +48,6 @@ public class PlayerListener implements Listener {
|
||||
*/
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onClick(PlayerInteractEvent e) {
|
||||
Util.debugLog("Clicked: "+e.getClickedBlock().toString());
|
||||
if (e.getAction().equals(Action.LEFT_CLICK_BLOCK)) {
|
||||
Block b = e.getClickedBlock();
|
||||
if (!Util.canBeShop(b) && b.getType() != Material.WALL_SIGN) {
|
||||
|
||||
Reference in new issue
Block a user