Skip to content

Commit

Permalink
Prevent recursive call (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba6000 authored Apr 18, 2024
1 parent bca4668 commit 74ca33c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ src/main/resources/mixins.*.json
*.bat
*.DS_Store
!gradlew.bat
layout.json
3 changes: 2 additions & 1 deletion src/main/java/appeng/parts/misc/PartStorageBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ public MEInventoryHandler getInternalHandler() {

try {
// force grid to update handlers...
this.getProxy().getGrid().postEvent(new MENetworkCellArrayUpdate());
if (!(new Throwable().getStackTrace()[3].getMethodName().equals("cellUpdate")))
this.getProxy().getGrid().postEvent(new MENetworkCellArrayUpdate());
} catch (final GridAccessException e) {
// :3
}
Expand Down

0 comments on commit 74ca33c

Please sign in to comment.