mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fixed bug where Deflect was calculated based on the attacker, not the defender
Closes #794
This commit is contained in:
parent
4b384abc51
commit
ce32792668
@ -25,6 +25,7 @@ Version 1.4.03-dev
|
|||||||
= Fixed bug with using Salvage on stacked items.
|
= Fixed bug with using Salvage on stacked items.
|
||||||
= Fixed bug where the 'mcmmo.commands.ptp.world.all' was registered twice
|
= Fixed bug where the 'mcmmo.commands.ptp.world.all' was registered twice
|
||||||
= Fixed bug where Beast Lore wouldn't work on friendly pets
|
= Fixed bug where Beast Lore wouldn't work on friendly pets
|
||||||
|
= Fixed bug where Deflect was calculated based on the attacker, not the defender. (We really did this time!)
|
||||||
! Moved the Salvage unlock level from config.yml to advanced.yml
|
! Moved the Salvage unlock level from config.yml to advanced.yml
|
||||||
! Changed how Chimaera Wings are acquired, you need to craft them now. (By default, use 5 feathers in a shapeless recipe)
|
! Changed how Chimaera Wings are acquired, you need to craft them now. (By default, use 5 feathers in a shapeless recipe)
|
||||||
- Removed option to disable Salvage via the config file. This should be handled via permissions instead.
|
- Removed option to disable Salvage via the config file. This should be handled via permissions instead.
|
||||||
|
@ -232,7 +232,7 @@ public final class CombatUtils {
|
|||||||
UnarmedManager unarmedManager = UserManager.getPlayer((Player) target).getUnarmedManager();
|
UnarmedManager unarmedManager = UserManager.getPlayer((Player) target).getUnarmedManager();
|
||||||
|
|
||||||
if (unarmedManager.canDeflect()) {
|
if (unarmedManager.canDeflect()) {
|
||||||
event.setCancelled(mcMMOPlayer.getUnarmedManager().deflectCheck());
|
event.setCancelled(unarmedManager.deflectCheck());
|
||||||
|
|
||||||
if (event.isCancelled()) {
|
if (event.isCancelled()) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user