mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-22 18:25:59 +01:00
Fix for NPE on hopper open.
This commit is contained in:
parent
aa9d8d8d21
commit
e1762ae41f
@ -53,7 +53,9 @@ public class EHopper implements Hopper {
|
||||
|
||||
public void overview(Player player) {
|
||||
try {
|
||||
if (lastPlayer != null && lastPlayer != player.getUniqueId()) {
|
||||
if (lastPlayer != null
|
||||
&& lastPlayer != player.getUniqueId()
|
||||
&& Bukkit.getPlayer(lastPlayer) != null) {
|
||||
Bukkit.getPlayer(lastPlayer).closeInventory();
|
||||
}
|
||||
if (placedBy == null) placedBy = player.getUniqueId();
|
||||
|
Loading…
Reference in New Issue
Block a user