add check before adding matrix into list (#78)

This commit is contained in:
MCTBL authored and GitHub committed 2024-11-06 13:01:36 +01:00
1 parent 57fdcb6ee5
commit d2e51194c7
1 file changed
+1
@@ -89,6 +89,7 @@ public class TileAdvancedInfusionProvider extends TileInfusionProvider implement
public void bindMatrixs(final int x, final int y, final int z) {
if (this.worldObj != null && this.worldObj.getTileEntity(x, y, z) instanceof TileInfusionMatrix tim) {
if (this.matrices.contains(tim)) return;
this.matrices.add(tim);
this.markForUpdate();