remove STONE

This commit is contained in:
0ddlyoko 2020-02-13 22:43:34 +01:00 committed by Brianna
parent f0239dfd2b
commit 5917105622

View File

@ -342,6 +342,8 @@ public class Block implements Listener {
}
if (NMSUtil.getVersionNumber() < 12) {
if (event.getToBlock().getType() != Material.COBBLESTONE)
return;
if (generatorManager != null && generatorManager.getGenerators().size() > 0 && generatorManager.isGenerator(block)) {
List<Generator> generators = new ArrayList<>(generatorManager.getGenerators());
Collections.reverse(generators); // Use the highest generator available
@ -547,7 +549,7 @@ public class Block implements Listener {
BlockState state = event.getNewState();
Material type = state.getType();
if (type != Material.COBBLESTONE && type != Material.STONE) return;
if (type != Material.COBBLESTONE) return;
GeneratorManager generatorManager = skyblock.getGeneratorManager();
if (generatorManager == null) return;