Skip to content

Error when setting blockType as a block with oraxen. #40

@PolsatGraniePL

Description

@PolsatGraniePL

Describe the bug
When setting the blockType in the generator to a block from Oraxena, an error is displayed in the console:

java.util.ConcurrentModificationException: null
        at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1013) ~[?:?]
        at java.util.ArrayList$Itr.next(ArrayList.java:967) ~[?:?]
        at xyz.arcadiadevs.gensplus.tasks.CleanupTask.run(:29) ~[GensPlus.jar:?]
        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.20.1.jar:git-Purpur-2062]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.20.1.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]

and the generator does not work and is not included in the number of generators after place it.

Generator config:

  - name: "&e&lWheat Generator"
    tier: 1
    price: 1000.0
    sellPrice: 10.0
    speed: 20
    spawnItem: "oraxen:hay_block_generator_item"
    blockType: "oraxen:hay_block_generator"
    lore: []
    itemSpawnLore: []
    hologramLines:
      - "&e%name%"
      - "&7Tier: &e%tier%"
      - "&7Spawns each &e%speed% &7seconds &e%spawnItem%"
      - "&7Sells for &e%sellPrice%"
    dropDisplayName: "&e&lWheat Drop"
    instantBreak: false

Screenshots
It looks normal in the gui.
image
In inventory, the only thing that changes is the type from the oraxen config to the name "oraxen:NAME"
image
And when placed, it behaves like a regular oraxen block, not like a generator.
image

Additional info:

  • Spigot Version: Purpur-2062
  • Using ViaVersion/ProtocolSupport: no
  • Your MC version: 1.20.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions