1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-17 17:32:36 +01:00

improved compatibility with Excellent Enchants

This commit is contained in:
nossr50
2026-01-26 11:23:45 -08:00
parent 4c33f76404
commit 8ac3198386
2 changed files with 8 additions and 2 deletions

View File

@@ -5,10 +5,12 @@ Version 2.2.049
Fixed copper items not giving XP for Repair (thanks Remski01)
Fixed edge case where mcMMO could drop items with stack size set outside normal bounds
Fixed a bug where tamed wolves could cause errors on Folia (thanks Warriorrrr)
Improved compatibility with Excellent Enchants (fixed error spam from Flame Walker)
NOTES:
As a semi-permanent work around, mcMMO keeps track of when players swing their weapon, if they have swung it recently enough combat skills will work even if you have a spear in your off-hand.
Prior to this patch, mcMMO disabled combat abilities when spear was in off-hand to prevent the off-hand spear charge from applying combat abilities from other skills, as mcMMO was unable to determine which item (mainhand vs offhand) caused the damage from the event information alone.
Version 2.2.048
Fixed error when loading Spears skill manager on older Minecraft versions
Fixed error when using /spears command on an older Minecraft version

View File

@@ -259,7 +259,7 @@ public class BlockListener implements Listener {
*/
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onBlockFormEvent(BlockFormEvent event) {
World world = event.getBlock().getWorld();
final World world = event.getBlock().getWorld();
/* WORLD BLACKLIST CHECK */
if (WorldBlacklist.isWorldBlacklisted(world)) {
@@ -267,7 +267,11 @@ public class BlockListener implements Listener {
}
if (ExperienceConfig.getInstance().preventStoneLavaFarming()) {
BlockState newState = event.getNewState();
final BlockState newState = event.getNewState();
if (!newState.isPlaced()) {
// not backed by a real block
return;
}
if (newState.getType() != Material.OBSIDIAN
&& ExperienceConfig.getInstance().doesBlockGiveSkillXP(