Jump to content

Recommended Posts

Posted

In BlockPane, this:

    public final boolean canThisPaneConnectToThisBlockID(int par1)
    {
        return Block.opaqueCubeLookup[par1] || par1 == this.blockID || par1 == Block.glass.blockID;
    }

needs to be changed to this:

    public boolean canThisPaneConnectToThisBlockID(int par1)
    {
        return Block.opaqueCubeLookup[par1] || par1 == this.blockID || par1 == Block.glass.blockID;
    }

It feels sloppy being force to do this in the constructor to allow blocks extending blockpane to connect with thin glass or iron fences:

Block.opaqueCubeLookup[myblockid] = true;
Block.opaqueCubeLookup[block.fenceIron.blockID] = true;
Block.opaqueCubeLookup[block.thinGlass.blockID] = true;

btw, this setting is separate from  what returns from isOpaqueBlock or isNormalBlock, so changing it does not effect rendering from what I have seen, it seems opaqueCubeLookup is a behavioral mapping, so this work around doesn't cause too many issues, but obviously is could if something is truely expecting an opaque block by looking in there.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.