Skip to content

Commit

Permalink
DSU: Try validate() instead of markDirty()
Browse files Browse the repository at this point in the history
Signed-off-by: unilock <[email protected]>
  • Loading branch information
unilock committed Jan 28, 2024
1 parent e01bd0e commit 4eff9b7
Showing 1 changed file with 6 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.util.ForgeDirection;

import powercrystals.minefactoryreloaded.MineFactoryReloadedClient;
import powercrystals.minefactoryreloaded.api.IDeepStorageUnit;
import powercrystals.minefactoryreloaded.core.UtilInventory;
import powercrystals.minefactoryreloaded.gui.client.GuiDeepStorageUnit;
Expand All @@ -32,26 +31,13 @@ public TileEntityDeepStorageUnit() {
setManageSolids(true);
}

@Override
public void markDirty() {
// TileEntityBase
inWorld = true;

// TileEntityFactory
onRotate();
if (worldObj.isRemote && hasHAM()) {
MineFactoryReloadedClient.addTileToAreaList(this);
}
@Override
public void validate() {

// TileEntityFactoryInventory
client = worldObj.isRemote;

// TileEntityDeepStorageUnit
_ignoreChanges = false;
onFactoryInventoryChanged();

super.markDirty();
}
super.validate();
_ignoreChanges = false;
onFactoryInventoryChanged();
}

@Override
public void invalidate() {
Expand Down

0 comments on commit 4eff9b7

Please sign in to comment.