Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Jul 18, 2024
1 parent 4c295c5 commit b3e064a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ public interface RenderManagerAccessor {

@Accessor
double getRenderPosZ();

@Accessor
boolean isRenderOutlines();
}
3 changes: 3 additions & 0 deletions src/main/java/club/sk1er/patcher/util/chat/ChatHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ private static boolean deleteMessageByHash(int hashCode) {
if (toRemove.contains(chatLine)) {
chatLinesWrapped.remove(index);
index--;
if (mc.ingameGUI.getChatGUI().getChatOpen()) {
mc.ingameGUI.getChatGUI().scroll(-1);
}

if (index <= 0 || index >= chatLinesWrapped.size()) {
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private static int getQuery() {
* @return true if the entity rendering should be skipped
*/
private static boolean checkEntity(Entity entity) {
if (renderingSpawnerEntity) return false;
if (renderingSpawnerEntity || renderManagerAccessor.isRenderOutlines()) return false;
OcclusionQuery query = queries.computeIfAbsent(entity.getUniqueID(), OcclusionQuery::new);
if (query.refresh) {
query.nextQuery = getQuery();
Expand Down

0 comments on commit b3e064a

Please sign in to comment.