Skip to content

Commit 4ca9cdb

Browse files
committed
woops
1 parent a7ea5b2 commit 4ca9cdb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/me/cortex/voxy/client/iris/IrisVoxyRenderPipelineData.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,10 @@ public boolean addDynamicSampler(TextureType type, IntSupplier texture, Supplier
450450
@Override
451451
public boolean addDynamicSampler(TextureType type, IntSupplier texture, ValueUpdateNotifier notifier, Supplier<GlSampler> sampler, String... names) {
452452
if (!this.hasSampler(names)) return false;
453-
samplerSet.add(new TextureWSampler(this.name(names), texture, sampler!=null?()->sampler.get().getId():()->-1));
453+
samplerSet.add(new TextureWSampler(this.name(names), texture, sampler!=null?()->{
454+
var s = sampler.get();
455+
return s!=null?s.getId():-1;
456+
}:()->-1));
454457
return true;
455458
}
456459

0 commit comments

Comments
 (0)