Skip to content

Commit f036184

Browse files
asiekierkaGlease
andcommitted
fix client side memory leak on anything RedstoneAware
GTNewHorizons#142 Co-authored-by: Glease <4586901+Glease@users.noreply.github.com>
1 parent a4f44f1 commit f036184

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* [#3769] Add default user agent configuration option; change OpenComputers' default user agent to "opencomputers/$version".
44
* [#3759] Add V1 and V2 to the robot name list. (AutumnalModding)
55
* [#3727] Fix more regressions related to OpenOS error handling. (jasonS05, kcinnajlol)
6+
* Fix client-side memory leak on anything RedstoneAware (Glease)
67

78
## List of contributors
89

9-
asie, AutumnalModding, jasonS05, kcinnajlol
10+
asie, AutumnalModding, Glease, jasonS05, kcinnajlol

src/main/scala/li/cil/oc/common/tileentity/traits/RedstoneAware.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ trait RedstoneAware extends RotationAware with IConnectable with IRedstoneEmitte
135135

136136
override def validate(): Unit = {
137137
super.validate()
138-
if (!canUpdate) {
138+
if (!canUpdate && isServer) {
139139
EventHandler.scheduleServer(() => ForgeDirection.VALID_DIRECTIONS.foreach(updateRedstoneInput))
140140
}
141141
}

0 commit comments

Comments
 (0)