Fix a few nutderps on block updates
Incorrect assumptions + adopting very early = mistakes were made
This commit is contained in:
parent
26f7c874ff
commit
1bcc4e47e0
7 changed files with 18 additions and 11 deletions
|
@ -79,6 +79,7 @@ public class DefaultItemFilter implements IItemFilter
|
|||
TileEntity tile = (TileEntity) accessedInventory;
|
||||
World world = tile.getWorld();
|
||||
BlockPos pos = tile.getPos();
|
||||
world.notifyBlockUpdate(pos, world.getBlockState(pos), world.getBlockState(pos), 3);
|
||||
|
||||
return testStack;
|
||||
}
|
||||
|
@ -135,6 +136,7 @@ public class DefaultItemFilter implements IItemFilter
|
|||
TileEntity tile = (TileEntity) accessedInventory;
|
||||
World world = tile.getWorld();
|
||||
BlockPos pos = tile.getPos();
|
||||
world.notifyBlockUpdate(pos, world.getBlockState(pos), world.getBlockState(pos), 3);
|
||||
|
||||
inputStack.stackSize -= changeAmount;
|
||||
maxTransfer -= changeAmount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue