mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
NPE fix for Bleed Simulation (hopefully)
This commit is contained in:
parent
d09512373b
commit
16a0a3364a
@ -237,7 +237,7 @@ public class Swords
|
|||||||
//Bleed monsters/animals
|
//Bleed monsters/animals
|
||||||
for(LivingEntity x : plugin.misc.bleedTracker)
|
for(LivingEntity x : plugin.misc.bleedTracker)
|
||||||
{
|
{
|
||||||
if(x.isDead())
|
if(x == null || x.isDead())
|
||||||
{
|
{
|
||||||
plugin.misc.addToBleedRemovalQue(x);
|
plugin.misc.addToBleedRemovalQue(x);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user