
General Improvements
Speiger opened this issue ยท 0 comments
Some java practices.
- Use interfaces for variables unless the class itself is needed.
(List list = new ArrayList()) -
Maybe optimize getBlock calls a bit? -
This is exactly why hashsets exists. If you iterate over them use LinkedHashSets. But a Set always calls the equals function and hashcode which the object can override and compare. And this does not allow duplicates either.