Skip to content

Commit

Permalink
fix: mason and smithing turtle permission checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SirEdvin committed Aug 16, 2023
1 parent f688f75 commit b7383bc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.2.0] - 2023-08-16

### Fixed

- Permission checks for smithing and mason turtles
- Propagate fix for inventory logic from peripheralium

## [1.2.0] - 2023-07-25

### Changed
Expand Down
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.jvmargs = -Xmx4G
org.gradle.warning.mode = all
minecraftVersion = 1.20.1
# Mod Properties
modVersion = 1.2.0
modVersion = 1.2.1
mavenGroup = site.siredvin
modBaseName = turtlematic
archivesBaseName = turtlematic
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mixinGradle = "0.8.+"
forgegradle = "6.+"
# Core mod dependencies
cc-tweaked = "1.106.1"
peripheralium = "0.6.7"
peripheralium = "0.6.11"
mixin = "0.8.5"
# Fabric dependencies
fabric-api = "0.85.0+1.20.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class MasonAutomataCorePeripheral(turtle: ITurtleAccess, side: TurtleSide, tier:
}

private fun isEditable(pos: BlockPos): Boolean {
return peripheralOwner.withPlayer({
return !peripheralOwner.withPlayer({
PeripheraliumPlatform.isBlockProtected(pos, it.fakePlayer.level().getBlockState(pos), it.fakePlayer)
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SmithingAutomataCorePeripheral(turtle: ITurtleAccess, side: TurtleSide, ti
}

private fun isEditable(pos: BlockPos): Boolean {
return peripheralOwner.withPlayer({
return !peripheralOwner.withPlayer({
PeripheraliumPlatform.isBlockProtected(pos, it.fakePlayer.level().getBlockState(pos), it.fakePlayer)
})
}
Expand Down

0 comments on commit b7383bc

Please sign in to comment.