Search Fluids; Changed Block Highlighter (#13)

* Search Fluids; Changed Block Highlighter

* fix hightlight when use rotate view

---------

Co-authored-by: slprime <[email protected]>
This commit is contained in:
slprimeandslprime authored and GitHub committed 2024-02-18 15:39:55 +01:00
1 parent 9d6ce05d9e
commit fc025b3b85
12 files changed
+303 -381

No files matched your search

@@ -32,6 +32,7 @@ public class BlockFindService {
for (TileEntity tileEntity : WorldUtils.getTileEntitiesAround(player, FindItConfig.SEARCH_RADIUS)) {
try {
Block tileBlock = tileEntity.getBlockType();
if (!request.getBlockToFind().equals(tileBlock)) {
continue;
}
@@ -54,8 +55,6 @@ public class BlockFindService {
}
}
if (!positions.isEmpty()) {
FindItNetwork.CHANNEL.sendTo(new BlockFoundResponse(positions), player);
}
FindItNetwork.CHANNEL.sendTo(new BlockFoundResponse(positions), player);
}
}