Implement method from paper

This commit is contained in:
Cola committed 2022-06-03 23:44:17 +01:00
1 parent 99fc5d2b31
commit 9e8a217bdf
1 file changed
+1 -1
@@ -149,7 +149,7 @@ public final class OldEnchanting extends BasicHack {
// Setup enchantment randomiser
Field randomiser = null;
try {
randomiser = FieldUtils.getDeclaredField(EnchantmentMenu.class, "h", true);
randomiser = FieldUtils.getDeclaredField(EnchantmentMenu.class, "p", true);
}
catch (final Throwable throwable) {
this.logger.log(Level.WARNING, "An exception was thrown while trying to reflect the enchanting " +