mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-28 16:05:14 +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
|
@Override
|
||||||
public void breakBlock(@NotNull final Player player,
|
public void breakBlock(@NotNull final Player player,
|
||||||
@NotNull final Block block) {
|
@NotNull final Block block) {
|
||||||
if (block.getY() > 255) {
|
if (block.getY() > 255 || block.getY() < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
||||||
|
@ -11,7 +11,7 @@ public final class BlockBreak implements BlockBreakProxy {
|
|||||||
@Override
|
@Override
|
||||||
public void breakBlock(@NotNull final Player player,
|
public void breakBlock(@NotNull final Player player,
|
||||||
@NotNull final Block block) {
|
@NotNull final Block block) {
|
||||||
if (block.getY() > 255) {
|
if (block.getY() > 255 || block.getY() < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
||||||
|
@ -11,7 +11,7 @@ public final class BlockBreak implements BlockBreakProxy {
|
|||||||
@Override
|
@Override
|
||||||
public void breakBlock(@NotNull final Player player,
|
public void breakBlock(@NotNull final Player player,
|
||||||
@NotNull final Block block) {
|
@NotNull final Block block) {
|
||||||
if (block.getY() > 255) {
|
if (block.getY() > 255 || block.getY() < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
||||||
|
@ -11,7 +11,7 @@ public final class BlockBreak implements BlockBreakProxy {
|
|||||||
@Override
|
@Override
|
||||||
public void breakBlock(@NotNull final Player player,
|
public void breakBlock(@NotNull final Player player,
|
||||||
@NotNull final Block block) {
|
@NotNull final Block block) {
|
||||||
if (block.getY() > 255) {
|
if (block.getY() > 255 || block.getY() < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
((CraftPlayer) player).getHandle().playerInteractManager.breakBlock(new BlockPosition(block.getX(), block.getY(), block.getZ()));
|
||||||
|
Loading…
Reference in New Issue
Block a user