mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix J6 compile error in IItemHandler PR.
This commit is contained in:
1 parent
5257739d06
commit
01919e4eed
1 file changed
+4
-3
@@ -9,7 +9,8 @@ import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.Objects;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
public class VanillaDoubleChestItemHandler extends WeakReference<TileEntityChest> implements IItemHandler
|
||||
{
|
||||
@@ -123,9 +124,9 @@ public class VanillaDoubleChestItemHandler extends WeakReference<TileEntityChest
|
||||
|
||||
final TileEntityChest otherChest = getOtherChest();
|
||||
if (mainChestIsUpper == that.mainChestIsUpper)
|
||||
return Objects.equals(mainChest, that.mainChest) && Objects.equals(otherChest, that.getOtherChest());
|
||||
return Objects.equal(mainChest, that.mainChest) && Objects.equal(otherChest, that.getOtherChest());
|
||||
else
|
||||
return Objects.equals(mainChest, that.getOtherChest()) && Objects.equals(otherChest, that.mainChest);
|
||||
return Objects.equal(mainChest, that.getOtherChest()) && Objects.equal(otherChest, that.mainChest);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user