Fixes #147
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Refined Storage Changelog
|
# Refined Storage Changelog
|
||||||
|
|
||||||
|
### 0.8.2
|
||||||
|
**Bugfixes**
|
||||||
|
- Fixed not being able to take items sometimes
|
||||||
|
|
||||||
### 0.8.1
|
### 0.8.1
|
||||||
**Bugfixes**
|
**Bugfixes**
|
||||||
- Fixed upgrades from interface not dropping
|
- Fixed upgrades from interface not dropping
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ public final class RefinedStorageUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((flags & CompareFlags.COMPARE_DAMAGE) == CompareFlags.COMPARE_DAMAGE) {
|
if ((flags & CompareFlags.COMPARE_DAMAGE) == CompareFlags.COMPARE_DAMAGE) {
|
||||||
if (left.getItemDamage() != right.getItemDamage()) {
|
if (left.getMetadata() != right.getMetadata()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import refinedstorage.api.autocrafting.ICraftingTask;
|
|||||||
import refinedstorage.api.network.GridPullFlags;
|
import refinedstorage.api.network.GridPullFlags;
|
||||||
import refinedstorage.api.network.IGridHandler;
|
import refinedstorage.api.network.IGridHandler;
|
||||||
import refinedstorage.api.network.INetworkMaster;
|
import refinedstorage.api.network.INetworkMaster;
|
||||||
import refinedstorage.api.storage.CompareFlags;
|
|
||||||
import refinedstorage.item.ItemWirelessGrid;
|
import refinedstorage.item.ItemWirelessGrid;
|
||||||
|
|
||||||
public class GridHandler implements IGridHandler {
|
public class GridHandler implements IGridHandler {
|
||||||
@@ -45,11 +44,6 @@ public class GridHandler implements IGridHandler {
|
|||||||
|
|
||||||
ItemStack took = RefinedStorageUtils.takeFromNetwork(network, stack, size);
|
ItemStack took = RefinedStorageUtils.takeFromNetwork(network, stack, size);
|
||||||
|
|
||||||
// Fallback for corner cases where NBT changes
|
|
||||||
if (took == null) {
|
|
||||||
took = network.take(stack, size, CompareFlags.COMPARE_DAMAGE);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (took != null) {
|
if (took != null) {
|
||||||
if ((flags & GridPullFlags.PULL_SHIFT) == GridPullFlags.PULL_SHIFT) {
|
if ((flags & GridPullFlags.PULL_SHIFT) == GridPullFlags.PULL_SHIFT) {
|
||||||
if (!player.inventory.addItemStackToInventory(took.copy())) {
|
if (!player.inventory.addItemStackToInventory(took.copy())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user