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
(cherry picked from commit ecaa363)
  • Loading branch information
Glease authored and Dream-Master committed Feb 23, 2025
1 parent 25b15e2 commit 52f025d
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 52f025d

Please sign in to comment.