mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
commit
69e1654985
@ -1967,7 +1967,14 @@ public class SlimefunSetup {
|
|||||||
if (mb.isMultiBlock(SlimefunItem.getByID("DIGITAL_MINER"))) {
|
if (mb.isMultiBlock(SlimefunItem.getByID("DIGITAL_MINER"))) {
|
||||||
if (CSCoreLib.getLib().getProtectionManager().canAccessChest(p.getUniqueId(), b, true)) {
|
if (CSCoreLib.getLib().getProtectionManager().canAccessChest(p.getUniqueId(), b, true)) {
|
||||||
if (Slimefun.hasUnlocked(p, SlimefunItems.DIGITAL_MINER, true)) {
|
if (Slimefun.hasUnlocked(p, SlimefunItems.DIGITAL_MINER, true)) {
|
||||||
Chest chest = (Chest) b.getRelative(BlockFace.UP).getState();
|
Block chestBlock = b.getRelative(BlockFace.UP);
|
||||||
|
|
||||||
|
if(!(BlockStorage.check(chestBlock.getRelative(BlockFace.WEST), "SOLAR_PANEL") && BlockStorage.check(chestBlock.getRelative(BlockFace.EAST), "SOLAR_PANEL") &&
|
||||||
|
!((BlockStorage.check(chestBlock.getRelative(BlockFace.NORTH), "SOLAR_PANEL") && BlockStorage.check(chestBlock.getRelative(BlockFace.SOUTH), "SOLAR_PANEL"))))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Chest chest = (Chest) chestBlock.getState();
|
||||||
final Inventory inv = chest.getInventory();
|
final Inventory inv = chest.getInventory();
|
||||||
List<Location> ores = new ArrayList<Location>();
|
List<Location> ores = new ArrayList<Location>();
|
||||||
for (int x = b.getX() - 4; x < b.getX() + 4; x++) {
|
for (int x = b.getX() - 4; x < b.getX() + 4; x++) {
|
||||||
@ -2045,7 +2052,14 @@ public class SlimefunSetup {
|
|||||||
if (mb.isMultiBlock(SlimefunItem.getByID("ADVANCED_DIGITAL_MINER"))) {
|
if (mb.isMultiBlock(SlimefunItem.getByID("ADVANCED_DIGITAL_MINER"))) {
|
||||||
if (CSCoreLib.getLib().getProtectionManager().canAccessChest(p.getUniqueId(), b, true)) {
|
if (CSCoreLib.getLib().getProtectionManager().canAccessChest(p.getUniqueId(), b, true)) {
|
||||||
if (Slimefun.hasUnlocked(p, SlimefunItems.ADVANCED_DIGITAL_MINER, true)) {
|
if (Slimefun.hasUnlocked(p, SlimefunItems.ADVANCED_DIGITAL_MINER, true)) {
|
||||||
Chest chest = (Chest) b.getRelative(BlockFace.UP).getState();
|
Block chestBlock = b.getRelative(BlockFace.UP);
|
||||||
|
|
||||||
|
if(!(BlockStorage.check(chestBlock.getRelative(BlockFace.WEST), "SOLAR_PANEL") && BlockStorage.check(chestBlock.getRelative(BlockFace.EAST), "SOLAR_PANEL") &&
|
||||||
|
!((BlockStorage.check(chestBlock.getRelative(BlockFace.NORTH), "SOLAR_PANEL") && BlockStorage.check(chestBlock.getRelative(BlockFace.SOUTH), "SOLAR_PANEL"))))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Chest chest = (Chest) chestBlock.getState();
|
||||||
final Inventory inv = chest.getInventory();
|
final Inventory inv = chest.getInventory();
|
||||||
List<Location> ores = new ArrayList<Location>();
|
List<Location> ores = new ArrayList<Location>();
|
||||||
for (int x = b.getX() - 6; x < b.getX() + 6; x++) {
|
for (int x = b.getX() - 6; x < b.getX() + 6; x++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user