File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/java/com/cleanroommc/modularui/widget Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 88import com .cleanroommc .modularui .api .widget .IGuiElement ;
99import com .cleanroommc .modularui .api .widget .ISynced ;
1010import com .cleanroommc .modularui .api .widget .IWidget ;
11+ import com .cleanroommc .modularui .network .NetworkUtils ;
1112import com .cleanroommc .modularui .screen .ModularPanel ;
1213import com .cleanroommc .modularui .screen .viewport .ModularGuiContext ;
1314import com .cleanroommc .modularui .theme .WidgetTheme ;
@@ -231,6 +232,7 @@ public static void onUpdate(IWidget parent) {
231232 }
232233
233234 public static void resize (IWidget parent ) {
235+ if (!NetworkUtils .isClient ()) return ;
234236 // TODO check if widget has a parent which depends on its children
235237 // resize each widget and calculate their relative pos
236238 if (!resizeWidget (parent , true ) && !resizeWidget (parent , false )) {
You can’t perform that action at this time.
0 commit comments