Skip to content

Commit

Permalink
Merge pull request #496 from P3pp3rF1y/1.20.x-dev
Browse files Browse the repository at this point in the history
Release merge
  • Loading branch information
P3pp3rF1y authored Oct 1, 2024
2 parents 4451e73 + 3114b28 commit 99817b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.daemon=false

mod_id=sophisticatedstorage
mod_group_id=sophisticatedstorage
mod_version=0.10.42
mod_version=0.10.44
sonar_project_key=sophisticatedstorage:SophisticatedStorage
github_package_url=https://maven.pkg.github.com/P3pp3rF1y/SophisticatedStorage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ public BlockState getStateForPlacement(BlockPlaceContext context) {

Direction direction = context.getHorizontalDirection().getOpposite();
return chestBeingPlaced.getCapability(CapabilityStorageWrapper.getCapabilityInstance())
.filter(wrapper -> wrapper.getContentsUuid().isPresent())
.map(wrapper ->
getStateForPlacement(context, direction, fluidstate,
StorageBlockItem.getMainColorFromStack(chestBeingPlaced).orElse(-1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class StorageButtonDefinitions {
Map.of(
ContentsFilterType.ALLOW, getButtonStateData(new UV(0, 0), StorageTranslationHelper.INSTANCE.translUpgradeButton("allow"), Dimension.SQUARE_16, new Position(1, 1)),
ContentsFilterType.BLOCK, getButtonStateData(new UV(16, 0), StorageTranslationHelper.INSTANCE.translUpgradeButton("block"), Dimension.SQUARE_16, new Position(1, 1)),
ContentsFilterType.STORAGE, getButtonStateData(new UV(80, 16), StorageTranslationHelper.INSTANCE.translUpgradeButton("match_storage_contents"), Dimension.SQUARE_16, new Position(1, 1))
ContentsFilterType.STORAGE, getButtonStateData(new UV(64, 16), StorageTranslationHelper.INSTANCE.translUpgradeButton("match_storage_contents"), Dimension.SQUARE_16, new Position(1, 1))
));

private StorageButtonDefinitions() {}
Expand Down

0 comments on commit 99817b8

Please sign in to comment.