Readd method for compatibility reasons

This commit is contained in:
ceze88 2023-04-10 17:17:00 +02:00
parent f2b9cbce3e
commit a00b6fb7fe
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ public class BlockStackManager {
return this.registeredBlocks.get(location);
}
public BlockStack getBlock(Block block, CompatibleMaterial material) {
return this.getBlock(block.getLocation());
}
public BlockStack createBlock(Location location, CompatibleMaterial material) {
return this.registeredBlocks.computeIfAbsent(location, b -> new BlockStack(material, location));
}