mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-27 11:42:55 +00:00
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:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user