mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-31 22:59:35 +01:00
Fixed Archery PVP/PVE enablement not being used properly
This commit is contained in:
parent
a1296596fa
commit
63c663b8c1
@ -188,16 +188,17 @@ public class Combat {
|
||||
}
|
||||
}
|
||||
else if (damager instanceof Arrow) {
|
||||
if (!configInstance.getArcheryPVP() && ((Arrow) damager).getShooter().getType().equals(EntityType.PLAYER)) {
|
||||
if (targetIsPlayer || targetIsTamedPet) {
|
||||
if (((Arrow) damager).getShooter().getType() != EntityType.PLAYER) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (targetIsPlayer || targetIsTamedPet) {
|
||||
if (!configInstance.getArcheryPVP()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!configInstance.getArcheryPVE() && !((Arrow) damager).getShooter().getType().equals(EntityType.PLAYER)) {
|
||||
if (!targetIsPlayer || !targetIsTamedPet) {
|
||||
return;
|
||||
}
|
||||
else if (!configInstance.getArcheryPVE()) {
|
||||
return;
|
||||
}
|
||||
|
||||
archeryCheck(event, plugin);
|
||||
|
Loading…
x
Reference in New Issue
Block a user