Fix #5806 sheep drop shears instead of wool

lol
This commit is contained in:
tterrag 2019-06-12 00:57:27 -04:00
parent b25ed7ef91
commit 0b1196db3f
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
+ net.minecraft.enchantment.EnchantmentHelper.func_77506_a(net.minecraft.enchantment.Enchantments.field_185308_t, stack));
+ java.util.Random rand = new java.util.Random();
+ drops.forEach(d -> {
+ net.minecraft.entity.item.ItemEntity ent = entity.func_70099_a(stack, 1.0F);
+ net.minecraft.entity.item.ItemEntity ent = entity.func_70099_a(d, 1.0F);
+ ent.func_213317_d(ent.func_213322_ci().func_72441_c((double)((rand.nextFloat() - rand.nextFloat()) * 0.1F), (double)(rand.nextFloat() * 0.05F), (double)((rand.nextFloat() - rand.nextFloat()) * 0.1F)));
+ });
+ stack.func_222118_a(1, entity, e -> e.func_213334_d(hand));