Prevent recursive call (#506)

This commit is contained in:
Jakub authored and GitHub committed 2024-04-18 21:08:03 +02:00
1 parent bca4668bb0
commit 74ca33cc34
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -31,3 +31,4 @@ src/main/resources/mixins.*.json
*.bat
*.DS_Store
!gradlew.bat
layout.json
@@ -469,7 +469,8 @@ public class PartStorageBus extends PartUpgradeable implements IGridTickable, IC
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
}