Skip to content

Commit 3d1105d

Browse files
committed
fix: merge conflicts
1 parent ab4d32d commit 3d1105d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

mojmap/src/main/java/dev/qixils/crowdcontrol/plugin/fabric/commands/DigCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void execute(@NotNull Supplier<@NotNull List<@NotNull ServerPlayer>> play
4242
Location loc = playerLocation.add(x, y, z);
4343
var block = loc.block();
4444
if (block.isAir()) continue;
45-
if (block.hasBlockEntity()) continue;
45+
if (block.getBlock().isEntityBlock()) continue;
4646

4747
locations.add(loc);
4848
}

mojmap/src/main/java/dev/qixils/crowdcontrol/plugin/fabric/commands/GravelCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void execute(@NotNull Supplier<@NotNull List<@NotNull ServerPlayer>> play
3434
for (ServerPlayer player : playerSupplier.get())
3535
locations.addAll(BlockFinder.builder()
3636
.origin(player)
37-
.locationValidator(loc -> !loc.block().isAir() && !loc.block().is(Blocks.GRAVEL) && !loc.block().getMaterial().isLiquid() && !loc.block().hasBlockEntity())
37+
.locationValidator(loc -> !loc.block().isAir() && !loc.block().is(Blocks.GRAVEL) && !loc.block().getMaterial().isLiquid() && !loc.block().getBlock().isEntityBlock())
3838
.shuffleLocations(false)
3939
.maxRadius(7)
4040
.build().getAll());

mojmap/src/main/java/dev/qixils/crowdcontrol/plugin/fabric/commands/VeinCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private void addOreVein(List<Location> stoneBlocks, Location base) {
4444
Location loc = base.add(x, y, z);
4545
BlockState block = loc.block();
4646
if (block.isAir()) continue;
47-
if (loc.block().hasBlockEntity()) continue;
47+
if (loc.block().getBlock().isEntityBlock()) continue;
4848

4949
stoneBlocks.add(loc);
5050
}
@@ -69,7 +69,7 @@ public void execute(@NotNull Supplier<@NotNull List<@NotNull ServerPlayer>> play
6969
BlockFinder finder = BlockFinder.builder()
7070
.origin(new Location(player))
7171
.maxRadius(VEIN_RADIUS)
72-
.locationValidator(loc -> !loc.block().isAir() && !loc.block().hasBlockEntity())
72+
.locationValidator(loc -> !loc.block().isAir() && !loc.block().getBlock().isEntityBlock())
7373
.build();
7474

7575
List<Ore> ores = new ArrayList<>();

0 commit comments

Comments
 (0)