EnvyWare / WonderTrade-Forge

MIT License
3 stars 2 forks source link

The Next Page button does not work on the WonderTrade GUI. #8

Closed speccycy closed 2 years ago

speccycy commented 2 years ago
admin-u-i:
    gui-settings:
        title: '  &8&l« &b&lWonder&3&lTrade&f&l-&4&lAdmin &8&l»'
        height: 6
        fill-type: BLOCK
        filler-items:
            one:
                enabled: true
                type: minecraft:stained_glass_pane
                amount: 1
                damage: 15
                name: ' '
                lore: []
                nbt: {}
    page-positions:
    - 0
    - 1
    - 2
    - 3
    - 4
    - 5
    - 6
    - 7
    - 8
    - 9
    - 10
    - 11
    - 12
    - 13
    - 14
    - 14
    - 15
    - 16
    - 17
    - 18
    - 19
    - 20
    - 21
    - 22
    - 23
    - 24
    - 25
    - 26
    - 27
    - 28
    - 29
    - 30
    - 31
    - 32
    - 33
    - 34
    - 35
    - 36
    - 37
    - 38
    - 39
    - 40
    - 41
    - 42
    - 43
    - 44
number-in-pool: 100
[16:47:53] [Server thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_302]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_302]
        at net.minecraft.util.Util.func_181617_a(SourceFile:47) [h.class:?]
        at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:890) [MinecraftServer.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:474) [nz.class:?]
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:826) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:685) [MinecraftServer.class:?]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_302]
Caused by: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46
        at java.util.ArrayList.rangeCheck(ArrayList.java:659) ~[?:1.8.0_302]
        at java.util.ArrayList.get(ArrayList.java:435) ~[?:1.8.0_302]
        at com.envyful.wonder.trade.forge.ui.AdminViewUI.openUI(AdminViewUI.java:45) ~[AdminViewUI.class:?]
        at com.envyful.wonder.trade.forge.ui.AdminViewUI.lambda$openUI$2(AdminViewUI.java:67) ~[AdminViewUI.class:?]
        at com.envyful.wonder.trade.forge.shade.envy.api.forge.gui.item.ForgeSimpleDisplayable.onClick(ForgeSimpleDisplayable.java:31) ~[ForgeSimpleDisplayable.class:?]
        at com.envyful.wonder.trade.forge.shade.envy.api.forge.gui.ForgeGui$ForgeGuiContainer.func_184996_a(ForgeGui.java:265) ~[ForgeGui$ForgeGuiContainer.class:?]
        at net.minecraft.network.NetHandlerPlayServer.func_147351_a(NetHandlerPlayServer.java:2176) ~[pa.class:?]
        at net.minecraft.network.play.client.CPacketClickWindow.func_148833_a(CPacketClickWindow.java:38) ~[lf.class:?]
        at net.minecraft.network.play.client.CPacketClickWindow.func_148833_a(CPacketClickWindow.java:12) ~[lf.class:?]
        at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[hv$1.class:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_302]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_302]
        at net.minecraft.util.Util.func_181617_a(SourceFile:46) ~[h.class:?]
        ... 5 more
danorris709 commented 2 years ago

Fixed in 5.1.0