Bewitchment

Bewitchment

7M Downloads

Incompatibility with Dye Depot

Occida opened this issue ยท 2 comments

commented

Mod version (NOT Minecraft version)

1.20-8

A description of the issue

Received this error when attempting to boot the game with both Bewitchment and Dye Depot on Minecraft 1.20.1:

[...]
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 21 out of bounds for length 21
	at moriyashiine.bewitchment.common.registry.BWObjects.createAltar(BWObjects.java:409)
	at moriyashiine.bewitchment.common.registry.BWObjects.<clinit>(BWObjects.java:220)
	... 11 more
[...]

Dye Depot seems to add its new dye colors in a way where some other mods, such as Supplementaries, automatically implement the new colors in their dyed objects.

Log or crash report

https://gist.github.com/Occida/cdc82d7fb792e445c604a086c6b9b70f

commented

Oh dear... seems this wasn't actually fixed, there's still another spot that doesn't like the extra dyes...
crash-2024-10-17_09.10.03-client.txt

commented

this line here, as well as the for loop one line above it

Item carpet = switch (DyeColor.byId(i)) {