1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Code format

This commit is contained in:
ItchyDitchy 2021-08-06 21:39:22 +08:00 committed by GitHub
parent 6d632d1ad6
commit dee4bc97e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,8 +102,9 @@ public class MinerAndroid extends ProgrammableAndroid {
protected void moveAndDig(Block b, BlockMenu menu, BlockFace face, Block block) {
Collection<ItemStack> drops = block.getDrops(effectivePickaxe);
if (!block.getWorld().getWorldBorder().isInside(block.getLocation()))
if (!block.getWorld().getWorldBorder().isInside(block.getLocation())) {
return;
}
if (!SlimefunTag.UNBREAKABLE_MATERIALS.isTagged(block.getType()) && !drops.isEmpty()) {
OfflinePlayer owner = Bukkit.getOfflinePlayer(UUID.fromString(BlockStorage.getLocationInfo(b.getLocation(), "owner")));