Old AE API repo has recieved changes, and although it works withMMOItems still, it throws console errors.

https://gitlab.com/phoenix-dvpmt/mmoitems/-/issues/1060

Unsure if I need to upload the API jar into a libs folder on MMOItems repo.
This commit is contained in:
Rosenthalk0 2022-11-10 14:11:34 -06:00
parent ecf8fda224
commit e147257bab
2 changed files with 8 additions and 8 deletions

View File

@ -195,13 +195,13 @@
<version>master</version>
<scope>provided</scope>
</dependency>
<!-- AE Api -->
<dependency>
<groupId>n3kas</groupId>
<artifactId>ae.api</artifactId>
<version>5.7.6</version>
<scope>provided</scope>
</dependency>
<!-- AE Api [Outdated] -->
<!-- <dependency>-->
<!-- <groupId>n3kas</groupId>-->
<!-- <artifactId>ae.api</artifactId>-->
<!-- <version>5.7.6</version>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<!-- BossShop -->
<dependency>
<groupId>org.black_ixx</groupId>

View File

@ -16,7 +16,7 @@ public class AdvancedEnchantmentsHook implements Listener {
@EventHandler
public void onEnchantApply(EnchantApplyEvent event) {
NBTItem item = MythicLib.plugin.getVersion().getWrapper().getNBTItem(event.getItem());
NBTItem item = MythicLib.plugin.getVersion().getWrapper().getNBTItem(event.getItemStack());
if (item.getBoolean("MMOITEMS_DISABLE_ADVANCED_ENCHANTS"))
event.setCancelled(true);
}