Skip to content

Commit

Permalink
Fix shadow drawer comparator output not updating (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiDragon committed Jan 19, 2023
1 parent afd9d1f commit 26843d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@

@SuppressWarnings({"UnstableApiUsage", "deprecation"}) // transfer api and mojank block method deprecation
public class ShadowDrawerBlock extends NetworkBlockWithEntity<ShadowDrawerBlockEntity> implements CreativeBreakBlocker, DrawerInteractionHandler {

public static final DirectionProperty FACING = Properties.HORIZONTAL_FACING;

public ShadowDrawerBlock(Settings settings) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ public void recalculateContents() {
}
}
countCache = amount;

//countCache = createStorage(world, pos).simulateExtract(item, Long.MAX_VALUE, null);

}
var state = getCachedState();
world.updateListeners(pos, state, state, Block.NOTIFY_LISTENERS);
world.updateComparators(pos, state.getBlock());
}

@Nullable
Expand Down

0 comments on commit 26843d6

Please sign in to comment.