Skip to content

Commit

Permalink
fix client side memory leak on anything RedstoneAware (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Glease authored Jan 10, 2025
1 parent 6a79eda commit ecaa363
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ trait RedstoneAware extends RotationAware with IConnectable with IRedstoneEmitte

override def validate(): Unit = {
super.validate()
if (!canUpdate) {
if (!canUpdate && isServer) {
EventHandler.scheduleServer(() => ForgeDirection.VALID_DIRECTIONS.foreach(updateRedstoneInput))
}
}
Expand Down

0 comments on commit ecaa363

Please sign in to comment.