Fixed Grid Filter only updating the Grid when reopening the GUI

This commit is contained in:
Raoul Van den Berge
2016-08-19 02:22:57 +02:00
parent 1ee7936bcb
commit 4c72f48dbb
5 changed files with 15 additions and 3 deletions

View File

@@ -3,12 +3,17 @@
### 0.9
**Bugfixes**
- Fixed crash with Grid
- Fixed Grid Filter only updating the Grid when reopening the GUI
- Priority field and detector amount field can now display 4 digits at a time
**Features**
- Added fluid storage
- Energy usage of Wireless Grid is now configurable
### 0.8.20
**Bugfixes**
- Fixed crash with Grid
### 0.8.19
**Bugfixes**
- Fixed item duplication bug with External Storage

View File

@@ -39,7 +39,7 @@ public class CraftingTaskScheduler {
tile.markDirty();
}
public void writeToNBT(NBTTagCompound tag) {
public void write(NBTTagCompound tag) {
if (scheduledItem != null) {
tag.setTag(NBT_SCHEDULED, scheduledItem.serializeNBT());
} else {

View File

@@ -1,8 +1,11 @@
package refinedstorage.inventory;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.relauncher.Side;
import refinedstorage.RefinedStorageItems;
import refinedstorage.gui.grid.GridFilteredItem;
import refinedstorage.gui.grid.GuiGrid;
import refinedstorage.item.ItemGridFilter;
import java.util.List;
@@ -37,5 +40,9 @@ public class ItemHandlerGridFilterInGrid extends ItemHandlerBasic {
}
}
}
if (FMLCommonHandler.instance().getSide() == Side.CLIENT) {
GuiGrid.markForSorting();
}
}
}

View File

@@ -162,7 +162,7 @@ public class TileConstructor extends TileMultipartNode implements IComparable, I
writeItems(upgrades, 1, tag);
writeItems(fluidFilters, 2, tag);
scheduler.writeToNBT(tag);
scheduler.write(tag);
return tag;
}

View File

@@ -148,7 +148,7 @@ public class TileExporter extends TileMultipartNode implements IComparable, ITyp
writeItems(upgrades, 1, tag);
writeItems(fluidFilters, 2, tag);
scheduler.writeToNBT(tag);
scheduler.write(tag);
return tag;
}