Skip to content

Commit

Permalink
fix: 🐛 Fixed Shulker Boxes to properly show no tint even after they a…
Browse files Browse the repository at this point in the history
…re placed down when this was removed using cauldron
  • Loading branch information
P3pp3rF1y committed Jan 9, 2025
1 parent d7b1c76 commit 219c5f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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=1.1.0
mod_version=1.1.1
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 @@ -137,8 +137,8 @@ public void setPlacedBy(Level level, BlockPos pos, BlockState state, @Nullable L
}
if (stack.getItem() instanceof ShulkerBoxItem shulkerBoxItem) {
StorageWrapper storageWrapper = be.getStorageWrapper();
shulkerBoxItem.getMainColor(stack).ifPresent(storageWrapper::setMainColor);
shulkerBoxItem.getAccentColor(stack).ifPresent(storageWrapper::setAccentColor);
storageWrapper.setMainColor(shulkerBoxItem.getMainColor(stack).orElse(-1));
storageWrapper.setAccentColor(shulkerBoxItem.getAccentColor(stack).orElse(-1));
InventoryHandler inventoryHandler = storageWrapper.getInventoryHandler();
UpgradeHandler upgradeHandler = storageWrapper.getUpgradeHandler();
storageWrapper.changeSize(shulkerBoxItem.getNumberOfInventorySlots(stack) - inventoryHandler.getSlots(),
Expand Down

0 comments on commit 219c5f3

Please sign in to comment.