Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
12 Zeilen
490 B
Diff
12 Zeilen
490 B
Diff
--- a/net/minecraft/server/EnchantmentThorns.java
|
|
+++ b/net/minecraft/server/EnchantmentThorns.java
|
|
@@ -28,7 +28,7 @@
|
|
Random random = entityliving.getRandom();
|
|
ItemStack itemstack = 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));
|
|
}
|