Fixed a memory leak I didn't even know about.

This commit is contained in:
nossr50 2012-02-22 08:32:29 -08:00
parent 802af464cd
commit 324b69cba1

View File

@ -188,6 +188,10 @@ public class mcEntityListener implements Listener
Entity x = event.getEntity(); Entity x = event.getEntity();
x.setFireTicks(0); 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 //Remove bleed track
if(plugin.misc.bleedTracker.contains((LivingEntity)x)) if(plugin.misc.bleedTracker.contains((LivingEntity)x))
plugin.misc.addToBleedRemovalQue((LivingEntity)x); plugin.misc.addToBleedRemovalQue((LivingEntity)x);