From d879b2c70dbaf8c8e37f19a4c50521cfe778341f Mon Sep 17 00:00:00 2001 From: Lex Manos Date: Fri, 28 Nov 2014 07:43:50 -0800 Subject: [PATCH] Fix wrong state being passed to Block.getDrops --- patches/minecraft/net/minecraft/block/Block.java.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/minecraft/net/minecraft/block/Block.java.patch b/patches/minecraft/net/minecraft/block/Block.java.patch index bb36e99d5b..89a48da348 100644 --- a/patches/minecraft/net/minecraft/block/Block.java.patch +++ b/patches/minecraft/net/minecraft/block/Block.java.patch @@ -71,7 +71,7 @@ + if (!p_180653_1_.field_72995_K && !p_180653_1_.restoringBlockSnapshots) // do not drop items while restoring blockstates, prevents item dupe { - int j = this.func_149679_a(p_180653_5_, p_180653_1_.field_73012_v); -+ java.util.List items = getDrops(p_180653_1_, p_180653_2_, p_180653_1_.func_180495_p(p_180653_2_), p_180653_5_); ++ java.util.List items = getDrops(p_180653_1_, p_180653_2_, p_180653_3_, p_180653_5_); + p_180653_4_ = net.minecraftforge.event.ForgeEventFactory.fireBlockHarvesting(items, p_180653_1_, p_180653_2_, p_180653_3_, p_180653_5_, p_180653_4_, false, harvesters.get()); - for (int k = 0; k < j; ++k) @@ -445,7 +445,7 @@ + { + List ret = new java.util.ArrayList(); + -+ Random rand = world instanceof World ? ((World)world).field_73012_v : new Random(); ++ Random rand = world instanceof World ? ((World)world).field_73012_v : RANDOM; + + int count = quantityDropped(state, fortune, rand); + for(int i = 0; i < count; i++)