mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 22:14:40 +01:00
11 lines
507 B
Diff
11 lines
507 B
Diff
--- a/net/minecraft/server/EnchantmentThorns.java
|
|
+++ b/net/minecraft/server/EnchantmentThorns.java
|
|
@@ -29,7 +29,7 @@
|
|
Random random = entityliving.getRandom();
|
|
Entry<EnumItemSlot, ItemStack> entry = EnchantmentManager.b(Enchantments.THORNS, entityliving);
|
|
|
|
- if (a(i, random)) {
|
|
+ if (entity != null && a(i, random)) { // CraftBukkit
|
|
if (entity != null) {
|
|
entity.damageEntity(DamageSource.a(entityliving), (float) b(i, random));
|
|
}
|