mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 11:07:53 +01:00
Deleted an useless register method
This commit is contained in:
parent
2473a1bbe6
commit
d49cfc2215
@ -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) {
|
||||
|
@ -56,8 +56,6 @@ public class RegistryMain {
|
||||
Block.BlockAlternative blockAlternative = new Block.BlockAlternative(id, properties);
|
||||
|
||||
block.addBlockAlternative(blockAlternative);
|
||||
|
||||
Block.registerBlockAlternative(blockAlternative);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user