mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Fixed for below-world blocks
This commit is contained in:
parent
c825252850
commit
8bc7062761
@ -11,7 +11,7 @@ public final class BlockBreak implements BlockBreakProxy {
|
||||
@Override
|
||||
public void breakBlock(@NotNull final Player player,
|
||||
@NotNull final Block block) {
|
||||
if (block.getY() > 255) {
|
||||
if (block.getY() > 255 || block.getY() < 0) {
|
||||
return;
|
||||
}
|
||||
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
||||
|
@ -11,7 +11,7 @@ public final class BlockBreak implements BlockBreakProxy {
|
||||
@Override
|
||||
public void breakBlock(@NotNull final Player player,
|
||||
@NotNull final Block block) {
|
||||
if (block.getY() > 255) {
|
||||
if (block.getY() > 255 || block.getY() < 0) {
|
||||
return;
|
||||
}
|
||||
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
||||
|
@ -11,7 +11,7 @@ public final class BlockBreak implements BlockBreakProxy {
|
||||
@Override
|
||||
public void breakBlock(@NotNull final Player player,
|
||||
@NotNull final Block block) {
|
||||
if (block.getY() > 255) {
|
||||
if (block.getY() > 255 || block.getY() < 0) {
|
||||
return;
|
||||
}
|
||||
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
||||
|
@ -11,7 +11,7 @@ public final class BlockBreak implements BlockBreakProxy {
|
||||
@Override
|
||||
public void breakBlock(@NotNull final Player player,
|
||||
@NotNull final Block block) {
|
||||
if (block.getY() > 255) {
|
||||
if (block.getY() > 255 || block.getY() < 0) {
|
||||
return;
|
||||
}
|
||||
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
||||
|
Loading…
Reference in New Issue
Block a user