mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Fixed a memory leak I didn't even know about.
This commit is contained in:
parent
802af464cd
commit
324b69cba1
@ -188,6 +188,10 @@ public class mcEntityListener implements Listener
|
||||
Entity x = event.getEntity();
|
||||
x.setFireTicks(0);
|
||||
|
||||
//Remove mob from mob spawner list
|
||||
if(plugin.misc.mobSpawnerList.contains(x.getEntityId()))
|
||||
plugin.misc.mobSpawnerList.remove(x.getEntityId());
|
||||
|
||||
//Remove bleed track
|
||||
if(plugin.misc.bleedTracker.contains((LivingEntity)x))
|
||||
plugin.misc.addToBleedRemovalQue((LivingEntity)x);
|
||||
|
Loading…
Reference in New Issue
Block a user