mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-23 04:24:16 -04:00
fix client side memory leak on anything RedstoneAware (#142)
This commit is contained in:
parent
6a79edab8b
commit
ecaa363ff3
@ -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))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user