Skip to content

[Crash]: Exception in server tick loop (StackOverflowError) #127

@CoolerProYT

Description

@CoolerProYT

Mod Loader (Required)

NeoForge

Minecraft Version(s) (Required)

1.21.10

Mod Version(s) (Required)

21.10.0

Notes (Required)

  1. Install Archery Things mod + Easy Anvil
  2. Get any Chestplate and Quiver from creative tab
  3. Open Anvil Menu
  4. Put chestplate to the left and quiver to the right
  5. Crash

Based on my testing, this error only happned to NeoForge, Fabric is working fine.
Archery Things are subscribed to AnvilUpdateEvent to add anvil recipe:

@SubscribeEvent
    public void onAnvilUpdate(AnvilUpdateEvent event) {
        ItemStack left = event.getLeft();
        ItemStack right = event.getRight();

        if (left.get(DataComponents.EQUIPPABLE) != null && left.get(DataComponents.EQUIPPABLE).slot().equals(EquipmentSlot.CHEST) && right.getItem() == ModItems.QUIVER.get() && !left.has(ModDataComponents.STORED_QUIVER.get())){
            ItemStack output = event.getLeft().copy();
            output.set(ModDataComponents.STORED_QUIVER.get(), new StoredQuiver(right));
            event.setOutput(output);
            event.setMaterialCost(1);
            event.setXpCost(1);
        }
    }

Crash Report (Required)

https://gist.github.com/CoolerProYT/e92407edf135f728b098f8e0981b6058

latest.log (Optional)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions