Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/scala/codechicken/multipart/TMultiPart.scala
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ abstract class TMultiPart {
def doesTick = true

/** Return whether this part needs to be included in the dynamic render loop
* (renderDynamic). Default is false. Override this to true for parts like
* lights that need per-frame rendering but no logic updates.
*/
* (renderDynamic). Default is false. Override this to true for parts like
* lights that need per-frame rendering but no logic updates.
*/
def shouldRenderDynamic = false

/** Called once per world tick. This will be called even if doesTick returns
Expand Down
3 changes: 2 additions & 1 deletion src/main/scala/codechicken/multipart/TileMultipart.scala
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ trait TileMultipartClient extends TileMultipart {

def updateRenderCache() {
if (partList != null) {
val (dynamic, static) = partList.partition(p => p.doesTick || p.shouldRenderDynamic)
val (dynamic, static) =
partList.partition(p => p.doesTick || p.shouldRenderDynamic)
val sArr = static.toArray
val dArr = dynamic.toArray

Expand Down