mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-30 06:03:29 +01:00
Deprecate a method
This commit is contained in:
parent
b71a5e79e9
commit
b48ad78471
@ -56,6 +56,7 @@ public final class BlockLimitation extends EnumLimitation<CompatibleMaterial> {
|
||||
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public long getBlockLimit(Player player, Block block) {
|
||||
return this.getBlockLimit(player, block.getType());
|
||||
}
|
||||
|
@ -302,7 +302,7 @@ public class Block implements Listener {
|
||||
|
||||
BlockLimitation limits = plugin.getLimitationHandler().getInstance(BlockLimitation.class);
|
||||
|
||||
long limit = limits.getBlockLimit(player, block);
|
||||
long limit = limits.getBlockLimit(player, block.getType());
|
||||
|
||||
if (limits.isBlockLimitExceeded(block, limit)) {
|
||||
CompatibleMaterial material = null;
|
||||
|
@ -188,7 +188,7 @@ public class Interact implements Listener {
|
||||
|
||||
BlockLimitation limits = plugin.getLimitationHandler().getInstance(BlockLimitation.class);
|
||||
|
||||
long limit = limits.getBlockLimit(player, block);
|
||||
long limit = limits.getBlockLimit(player, block.getType());
|
||||
|
||||
if (limits.isBlockLimitExceeded(block, limit)) {
|
||||
plugin.getMessageManager().sendMessage(player,
|
||||
|
Loading…
Reference in New Issue
Block a user