diff --git a/pom.xml b/pom.xml index 88c9f1ee..33a0560b 100644 --- a/pom.xml +++ b/pom.xml @@ -149,7 +149,7 @@ io.lumine MythicLib-dist - 1.3.1 + 1.3.3 provided diff --git a/src/main/java/net/Indyuce/mmocore/MMOCore.java b/src/main/java/net/Indyuce/mmocore/MMOCore.java index 99a62ed3..6445637d 100644 --- a/src/main/java/net/Indyuce/mmocore/MMOCore.java +++ b/src/main/java/net/Indyuce/mmocore/MMOCore.java @@ -107,7 +107,7 @@ public class MMOCore extends LuminePlugin { public boolean shouldDebugSQL, hasBungee; - private static final int MYTHICLIB_COMPATIBILITY_INDEX = 7; + private static final int MYTHICLIB_COMPATIBILITY_INDEX = 8; public MMOCore() { plugin = this; diff --git a/src/main/java/net/Indyuce/mmocore/listener/BlockListener.java b/src/main/java/net/Indyuce/mmocore/listener/BlockListener.java index aee6211b..3b8d720c 100644 --- a/src/main/java/net/Indyuce/mmocore/listener/BlockListener.java +++ b/src/main/java/net/Indyuce/mmocore/listener/BlockListener.java @@ -1,5 +1,6 @@ package net.Indyuce.mmocore.listener; +import io.lumine.mythic.lib.MythicLib; import io.lumine.mythic.lib.UtilityMethods; import io.lumine.mythic.utils.Schedulers; import net.Indyuce.mmocore.MMOCore; @@ -184,9 +185,9 @@ public class BlockListener implements Listener { } } - /* - * Allows to mark cobblestone generated by cobblestone generators so that - * exp is not gained by these blocks + /** + * Allows to mark cobblestone generated by cobblestone generators + * so that experience is not gained by these blocks */ @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void cobblestoneGeneratorHandling(BlockFormEvent event) { @@ -195,7 +196,7 @@ public class BlockListener implements Listener { if (MMOCore.plugin.configManager.cobbleGeneratorXP) return; if (event.getBlock().getType() == Material.WATER || event.getBlock().getType() == Material.LAVA) - if (event.getNewState().getType() == Material.COBBLESTONE || event.getNewState().getType() == Material.OBSIDIAN) + if (MythicLib.plugin.getVersion().getWrapper().isGeneratorOutput(event.getNewState().getType())) event.getNewState().setMetadata("player_placed", new FixedMetadataValue(MMOCore.plugin, true)); }