Skip to content

Commit

Permalink
Comment for #200.
Browse files Browse the repository at this point in the history
Problematic and requires a refactor/restructure of the creation of
`SpecialChestInventory` instances in order to allow access to the block
entity data.
  • Loading branch information
noobanidus committed Jan 24, 2024
1 parent 7ffdd7b commit 5aed7bf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public void setChanged() {
newChestData.setDirty();
}

// TODO: The expectation in vanilla is that all instances of `Container` are also block entities. This is not the case for `SpecialChestInventory`; ergo, upon construction, some reference to the `ChestData` needs to be stored to allow for validity checks.
@Override
public boolean stillValid(Player player) {
return true;
Expand Down

0 comments on commit 5aed7bf

Please sign in to comment.