Skip to content

Commit 2dd0bae

Browse files
committed
bug: Fixed autocannon ammo container blocks not accessible on Sable sublevels
1 parent 9e3405f commit 2dd0bae

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Fixed:
3232
- [Sable] Fixed wired fuze detonation on Sable sublevels
3333
- [Sable] Fixed setting Fixed Cannon Mount orientation on Sable sublevels not working
3434
- [Sable] Fixed cannon plume orientation on Sable sublevel
35+
- [Sable] Fixed autocannon ammo container blocks not accessible on Sable sublevels
3536

3637
## [5.11.2] - 2026-02-27
3738

src/main/java/rbasamoyai/createbigcannons/munitions/autocannon/ammo_container/AutocannonAmmoContainerBlockEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public void setChanged() {
194194

195195
@Override
196196
public boolean stillValid(Player player) {
197-
return this.getBlockPos().closerThan(player.blockPosition(), 4);
197+
return player.canInteractWithBlock(this.getBlockPos(), 4);
198198
}
199199

200200
@Override

src/main/java/rbasamoyai/createbigcannons/munitions/autocannon/ammo_container/AutocannonAmmoContainerBlockEntityContainerWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public boolean canPlaceItem(int index, ItemStack stack) {
3131

3232
@Override
3333
public boolean stillValid(Player player) {
34-
return this.pos.closerThan(player.blockPosition(), 4);
34+
return player.canInteractWithBlock(this.pos, 4);
3535
}
3636

3737
}

0 commit comments

Comments
 (0)