mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-17 03:41:20 +01:00
Added a validity check for entities.
This commit is contained in:
parent
1d16886f8b
commit
9a42d01511
@ -64,7 +64,7 @@ public class StackingTask extends BukkitRunnable {
|
||||
|
||||
nextEntity:
|
||||
for (Entity entityO : entities) {
|
||||
if (entityO == null || entityO instanceof Player) continue;
|
||||
if (entityO == null || entityO instanceof Player || !entityO.isValid()) continue;
|
||||
|
||||
if (entityO instanceof Item && instance.getConfig().getBoolean("Main.Stack Items")) {
|
||||
ItemStack item = ((Item) entityO).getItemStack();
|
||||
|
Loading…
Reference in New Issue
Block a user