Readd method for compatibility reasons
This commit is contained in:
parent
f2b9cbce3e
commit
a00b6fb7fe
|
@ -30,6 +30,10 @@ public class BlockStackManager {
|
||||||
return this.registeredBlocks.get(location);
|
return this.registeredBlocks.get(location);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BlockStack getBlock(Block block, CompatibleMaterial material) {
|
||||||
|
return this.getBlock(block.getLocation());
|
||||||
|
}
|
||||||
|
|
||||||
public BlockStack createBlock(Location location, CompatibleMaterial material) {
|
public BlockStack createBlock(Location location, CompatibleMaterial material) {
|
||||||
return this.registeredBlocks.computeIfAbsent(location, b -> new BlockStack(material, location));
|
return this.registeredBlocks.computeIfAbsent(location, b -> new BlockStack(material, location));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue