mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-18 00:05:21 +01:00
Fixed NullPointerException
This commit is contained in:
parent
cb7a442b50
commit
32b79e48a7
@ -50,6 +50,7 @@ public class Interact implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
||||
public void onWaterPlace(PlayerInteractEvent event){
|
||||
if(event.getItem() == null) return;
|
||||
Player player = event.getPlayer();
|
||||
org.bukkit.block.Block block = event.getClickedBlock().getRelative(event.getBlockFace());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user