Skip to content

Commit

Permalink
fix: handle invalid calls to GateItemRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Nov 24, 2021
1 parent e222759 commit 097bf31
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ object GateItemRenderer extends IItemRenderer
ccrs.overlay = packedOverlay
ccrs.bind(RenderType.cutout(), getter, mStack)
RenderGate.instance().renderInv(stack, new RedundantTransformation,gate.gateType, ccrs)
case _ =>
println(s"GateItemRenderer cannot render non-gate item: ${stack.toString}")
}
}

Expand Down

0 comments on commit 097bf31

Please sign in to comment.