DevNatan / inventory-framework

Minecraft Inventory API framework
MIT License
117 stars 21 forks source link

Missing layout character: X #637

Closed ch4ika closed 3 months ago

ch4ika commented 3 months ago

Is there an existing issue for this?

🐛 Describe the bug

[19:03:28] [Server thread/INFO]: [InventoryFramework] [DEBUG] StatePhase value initialized in me.devnatan.inventoryframework.context.OpenContext (id = 0, initialValue = AbstractStateValue{internalId=0})
[19:03:28] [Server thread/INFO]: [InventoryFramework] [DEBUG] Using me.devnatan.inventoryframework.internal.BukkitInventoryFactory
[19:03:28] [Server thread/INFO]: [InventoryFramework] [DEBUG] StatePhase value initialized in me.devnatan.inventoryframework.context.RenderContext (id = 0, initialValue = AbstractStateValue{internalId=0})
[19:03:28] [Server thread/INFO]: [InventoryFramework] [DEBUG] Viewer 349703c5-9607-4d19-a258-ce20394a373a added to de.primecodes.plotadditions.view.PlotView
[19:03:28] [Server thread/INFO]: [InventoryFramework] [DEBUG] Context bd6d3fed-e0c6-4a37-a518-7717e7d776bc added to de.primecodes.plotadditions.view.PlotView
[19:03:28] [Server thread/INFO]: [InventoryFramework] [DEBUG] Rendering context bd6d3fed-e0c6-4a37-a518-7717e7d776bc
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF] Exception in command: plot 
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF] me.devnatan.inventoryframework.InventoryFrameworkException: Missing layout character: X
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.DefaultPublicSlotComponentRenderer.lambda$layoutSlot$3(DefaultPublicSlotComponentRenderer.java:190)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at java.base/java.util.Optional.orElseThrow(Optional.java:403)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.DefaultPublicSlotComponentRenderer.layoutSlot(DefaultPublicSlotComponentRenderer.java:190)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.DefaultPublicSlotComponentRenderer.layoutSlot(DefaultPublicSlotComponentRenderer.java:15)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.PlatformRenderContext.layoutSlot(PlatformRenderContext.java:49)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//de.primecodes.plotadditions.view.PlotView.onFirstRender(PlotView.java:55)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//de.primecodes.plotadditions.view.PlotView.onFirstRender(PlotView.java:32)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.ContextPlatformRenderHandlerCallInterceptor.intercept(ContextPlatformRenderHandlerCallInterceptor.java:13)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.ContextPlatformRenderHandlerCallInterceptor.intercept(ContextPlatformRenderHandlerCallInterceptor.java:8)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.pipeline.PipelineContext.loop(PipelineContext.java:43)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.pipeline.PipelineContext.proceed(PipelineContext.java:53)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.pipeline.PipelineContext.execute(PipelineContext.java:59)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.pipeline.Pipeline.execute(Pipeline.java:128)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.PlatformRenderContext.simulateRender(PlatformRenderContext.java:207)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.PlatformView.renderContext(PlatformView.java:301)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.ContextOpenInterceptor.finishOpen(ContextOpenInterceptor.java:61)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.ContextOpenInterceptor.intercept(ContextOpenInterceptor.java:35)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.ContextOpenInterceptor.intercept(ContextOpenInterceptor.java:15)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.pipeline.PipelineContext.loop(PipelineContext.java:43)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.pipeline.PipelineContext.proceed(PipelineContext.java:53)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.pipeline.PipelineContext.execute(PipelineContext.java:59)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.pipeline.Pipeline.execute(Pipeline.java:128)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.context.OpenContext.simulateOpen(OpenContext.java:187)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.PlatformView.open(PlatformView.java:82)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.IFViewFrame.internalOpen(IFViewFrame.java:156)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.ViewFrame.open(ViewFrame.java:111)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//me.devnatan.inventoryframework.ViewFrame.open(ViewFrame.java:73)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//de.primecodes.plotadditions.command.PlotSquaredCommand.onDefault(PlotSquaredCommand.java:59)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimePlotAdditions-2.0.0-SNAPSHOT.jar//de.primecodes.plotadditions.command.PlotBaseCommand.onDefault(PlotBaseCommand.java:22)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimeCorePlugin-0.2.0-SNAPSHOT.jar//co.aikar.commands.RegisteredCommand.invoke(RegisteredCommand.java:152)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimeCorePlugin-0.2.0-SNAPSHOT.jar//co.aikar.commands.BaseCommand.executeCommand(BaseCommand.java:578)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimeCorePlugin-0.2.0-SNAPSHOT.jar//co.aikar.commands.BaseCommand.execute(BaseCommand.java:513)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimeCorePlugin-0.2.0-SNAPSHOT.jar//co.aikar.commands.RootCommand.execute(RootCommand.java:99)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at PrimeCorePlugin-0.2.0-SNAPSHOT.jar//co.aikar.commands.BukkitRootCommand.execute(BukkitRootCommand.java:84)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at org.bukkit.craftbukkit.v1_20_R2.CraftServer.dispatchCommand(CraftServer.java:991)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at org.bukkit.craftbukkit.v1_20_R2.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:330)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:314)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2208)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$19(PlayerConnection.java:2168)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.TickTask.run(TickTask.java:18)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1324)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:193)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1301)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1294)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.util.thread.IAsyncTaskHandler.bp(IAsyncTaskHandler.java:114)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1410)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1156)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315)
[19:03:28] [Server thread/ERROR]: [PrimePlotAdditions] [ACF]    at java.base/java.lang.Thread.run(Thread.java:840)
    @Override
    public void onFirstRender(@NotNull RenderContext render) {
        Player player = render.getPlayer();
        Locale locale = player.locale();
        Plot plot = this.plot.get(render);

        render.layoutSlot('X').withItem(ViewUtils.placeholder());
        render.slot(2, 3).onRender(this::onRenderPlots).onClick(this::onPlots);
        render.slot(2, 5, create(locale)).onClick(this::onCreate);
        render.slot(2, 7, visit(locale)).onClick(this::onVisit);
        render.slot(2, 2, members(locale)).onClick(this::onMembers)
                .displayIf(() -> plot != null);
        render.slot(2, 8, settings(locale)).onClick(this::onSettings)
                .displayIf(() -> plot != null);
    }

✔️ Expected behavior

No response

👣 Steps to Reproduce

No response

💻 Platform

⭐ Server Version

1.20.2

📚 Library Version

Version 3.1.0-rc

✍️ Additional context

No response