2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/EnchantmentThorns.java
|
|
|
|
+++ b/net/minecraft/server/EnchantmentThorns.java
|
2019-06-21 12:00:00 +02:00
|
|
|
@@ -34,7 +34,7 @@
|
2016-02-29 22:32:46 +01:00
|
|
|
Random random = entityliving.getRandom();
|
2019-04-23 04:00:00 +02:00
|
|
|
Entry<EnumItemSlot, ItemStack> entry = EnchantmentManager.b(Enchantments.THORNS, entityliving);
|
2014-12-10 05:57:27 +01:00
|
|
|
|
|
|
|
- if (a(i, random)) {
|
|
|
|
+ if (entity != null && a(i, random)) { // CraftBukkit
|
2015-02-26 23:41:06 +01:00
|
|
|
if (entity != null) {
|
|
|
|
entity.damageEntity(DamageSource.a(entityliving), (float) b(i, random));
|
2016-02-29 22:32:46 +01:00
|
|
|
}
|