mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Update to Minecraft 1.9
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
--- a/net/minecraft/server/EnchantmentThorns.java
|
||||
+++ b/net/minecraft/server/EnchantmentThorns.java
|
||||
@@ -29,7 +29,7 @@
|
||||
Random random = entityliving.bc();
|
||||
ItemStack itemstack = EnchantmentManager.a(Enchantment.THORNS, entityliving);
|
||||
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));
|
||||
entity.makeSound("damage.thorns", 0.5F, 1.0F);
|
||||
}
|
||||
|
Reference in New Issue
Block a user