Deleted an useless register method

This commit is contained in:
Felix Cravic 2020-04-28 23:56:24 +02:00
parent 2473a1bbe6
commit d49cfc2215
2 changed files with 1 additions and 6 deletions

View File

@ -704,10 +704,6 @@ public enum Block {
return blocksAlternativesMap.get(blockId);
}
public static void registerBlockAlternative(BlockAlternative blockAlternative) {
blocksAlternativesMap.put(blockAlternative.id, blockAlternative);
}
private short blockId;
private List<BlockAlternative> blockAlternatives = new ArrayList<>();
@ -718,6 +714,7 @@ public enum Block {
public void addBlockAlternative(BlockAlternative blockAlternative) {
this.blockAlternatives.add(blockAlternative);
blocksMap.put(blockAlternative.id, this);
blocksAlternativesMap.put(blockAlternative.id, blockAlternative);
}
public short withProperties(String... properties) {

View File

@ -56,8 +56,6 @@ public class RegistryMain {
Block.BlockAlternative blockAlternative = new Block.BlockAlternative(id, properties);
block.addBlockAlternative(blockAlternative);
Block.registerBlockAlternative(blockAlternative);
}
}
}