Skip to content

Commit c8bf5f4

Browse files
committed
initial reposition
1 parent 62d1e70 commit c8bf5f4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main/java/com/cleanroommc/modularui/factory/HoloGuiManager.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ public static <T extends GuiData> void open(@NotNull UIFactory<T> factory, @NotN
3838
guiData.setJeiSettings(JeiSettings.DUMMY);
3939
GuiSyncManager syncManager = new GuiSyncManager(player);
4040
ModularPanel panel = factory.createPanel(guiData, syncManager);
41+
if (HoloUI.isOpen(panel)) {
42+
HoloUI.builder()
43+
.inFrontOf(player, 5, true)
44+
.reposition(panel.getName());
45+
ModularUI.LOGGER.warn("reposition the holo, sync to client");
46+
return;
47+
}
4148
WidgetTree.collectSyncValues(syncManager, panel);
4249
ModularContainer container = new ModularContainer(syncManager);
4350
HoloUI.builder()

0 commit comments

Comments
 (0)