mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-24 08:21:23 +01:00
Add todo
This commit is contained in:
parent
0fcfd78b62
commit
22379eda6f
@ -25,6 +25,7 @@ import it.unimi.dsi.fastutil.ints.IntSet;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
// TODO Fix memory leak lolz (only a smol one tho)
|
||||
public class BlockStorage implements StorableObject {
|
||||
private static final IntSet WHITELIST = new IntOpenHashSet(46, 1F);
|
||||
private final Map<Position, ReplacementData> blocks = new ConcurrentHashMap<>();
|
||||
@ -81,8 +82,8 @@ public class BlockStorage implements StorableObject {
|
||||
return blocks.remove(position);
|
||||
}
|
||||
|
||||
public static class ReplacementData {
|
||||
private int original;
|
||||
public static final class ReplacementData {
|
||||
private final int original;
|
||||
private int replacement;
|
||||
|
||||
public ReplacementData(int original, int replacement) {
|
||||
@ -94,10 +95,6 @@ public class BlockStorage implements StorableObject {
|
||||
return original;
|
||||
}
|
||||
|
||||
public void setOriginal(int original) {
|
||||
this.original = original;
|
||||
}
|
||||
|
||||
public int getReplacement() {
|
||||
return replacement;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user