mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
Fix #1027
This commit is contained in:
parent
f7a4e78a8c
commit
af24e5f427
@ -170,6 +170,7 @@ import net.minecraft.server.v1_11_R1.CrashReportSystemDetails;
|
|||||||
import net.minecraft.server.v1_11_R1.DamageSource;
|
import net.minecraft.server.v1_11_R1.DamageSource;
|
||||||
import net.minecraft.server.v1_11_R1.DataWatcherObject;
|
import net.minecraft.server.v1_11_R1.DataWatcherObject;
|
||||||
import net.minecraft.server.v1_11_R1.EnchantmentManager;
|
import net.minecraft.server.v1_11_R1.EnchantmentManager;
|
||||||
|
import net.minecraft.server.v1_11_R1.Enchantments;
|
||||||
import net.minecraft.server.v1_11_R1.EnderDragonBattle;
|
import net.minecraft.server.v1_11_R1.EnderDragonBattle;
|
||||||
import net.minecraft.server.v1_11_R1.Entity;
|
import net.minecraft.server.v1_11_R1.Entity;
|
||||||
import net.minecraft.server.v1_11_R1.EntityEnderDragon;
|
import net.minecraft.server.v1_11_R1.EntityEnderDragon;
|
||||||
@ -248,7 +249,7 @@ public class NMSImpl implements NMSBridge {
|
|||||||
|
|
||||||
if (target instanceof EntityLiving) {
|
if (target instanceof EntityLiving) {
|
||||||
f += EnchantmentManager.a(handle.getItemInMainHand(), target.getMonsterType());
|
f += EnchantmentManager.a(handle.getItemInMainHand(), target.getMonsterType());
|
||||||
i += EnchantmentManager.a(handle);
|
i += EnchantmentManager.a(Enchantments.KNOCKBACK, handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean flag = target.damageEntity(DamageSource.mobAttack(handle), f);
|
boolean flag = target.damageEntity(DamageSource.mobAttack(handle), f);
|
||||||
|
Loading…
Reference in New Issue
Block a user