mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 22:44:32 +00:00
Actually mark the sprite as used when you allocate it!
This commit is contained in:
1 parent
cf9b57d9fa
commit
a20c7f6f76
1 file changed
+3
-1
@@ -105,7 +105,9 @@ public class SpriteHelper
|
||||
|
||||
public static int getFreeSlot(BitSet slots)
|
||||
{
|
||||
return slots.nextSetBit(0);
|
||||
int next=slots.nextSetBit(0);
|
||||
slots.clear(next);
|
||||
return next;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user