fix client side memory leak on anything RedstoneAware (#142)

This commit is contained in:
Glease 2025-01-11 01:50:42 +08:00 committed by GitHub
parent 6a79edab8b
commit ecaa363ff3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))
}
}