Fix inverting gener rendering event cancling

This commit is contained in:
James Seibel
2024-07-11 17:57:30 -05:00
parent 691d5caded
commit 8e1dfd688e
@@ -394,7 +394,7 @@ public class GenericObjectRenderer implements IDhApiCustomRenderRegister
if (boxGroup.active)
{
boolean cancelRendering = ApiEventInjector.INSTANCE.fireAllEvents(DhApiBeforeGenericObjectRenderEvent.class, new DhApiBeforeGenericObjectRenderEvent.EventParam(renderEventParam, boxGroup));
if (cancelRendering)
if (!cancelRendering)
{
profiler.popPush("rendering");
profiler.push(boxGroup.getResourceLocationNamespace());