AlmostReliable/morejs

The EnchantmentTableIsEnchantable event is not working

Closed this issue · 1 comments

Minecraft Version

1.20.1

Mod Version

0.7.0

Describe the bug!

I wanted to use the EnchantmentTableIsEnchantable event to disable enchanting of anything other than books but the event does not seem to do anything.

After examining the ProbeJS typings and the source on this page I found this:

EventHandler ENCHANTMENT_TABLE_IS_ENCHANTABLE = GROUP.server("enchantmentTableIsEnchantable", () -> EnchantmentTableServerEventJS.class);

Seems like it is referencing EnchantmentTableServerEventJS.class instead of EnchantmentTableIsEnchantableEventJS.class.

Crash Report

No response

Log

No response

Additions and Modifications

Yes

Additions and Modifications Description

No response

Did the issue happen in singleplayer or on a server?

Singleplayer

Can't reproduce it. Works for me as intended