Skip to content

Commit

Permalink
Fix auto cannon firing uncontrollably when assembled by 'assemble()'
Browse files Browse the repository at this point in the history
  • Loading branch information
xiewuzhiying committed Aug 19, 2024
1 parent 68add94 commit 12cd6b9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ open class CannonMountPeripheral(
fun assemble(): Any {
if (!tileEntity.isRunning) {
(tileEntity as CannonMountBlockEntityAccessor?)?.Assemble()
(this.tileEntity.contraption?.contraption as AbstractMountedCannonContraption).onRedstoneUpdate(
this.tileEntity.level as ServerLevel,
this.tileEntity.contraption,
false,
0,
this.tileEntity
)
return true
}
return false
Expand Down

0 comments on commit 12cd6b9

Please sign in to comment.