Jump to content

Problem: TE.updateEntity() stops getting called sometimes


Recommended Posts

Posted

Hi, this is with 1.7.10.

 

I have a problem with one of my TE's. For some reason (usually after entering the dimension containing the TE) the updateEntity() function is no longer called on it (both server/client side). The TE does return true for canUpdate(). What can I do to ensure my TE starts 'ticking' again after enter the dimension that contains it?

 

Thanks,

Posted

BTW: Here is the link to the misbehaving TE:

 

https://github.com/McJty/RFTools/blob/master/src/main/java/com/mcjty/rftools/blocks/teleporter/MatterTransmitterTileEntity.java

 

To clarify. It is the checkStateServer() method that is sometimes not called. This method is called from a superclass (GenericTileEntity):

 

    @Override
    public void updateEntity() {
        if (worldObj.isRemote) {
            checkStateClient();
        } else {
            checkStateServer();
        }
    }

Posted

Some extra information. It is always ok right after loading the world and it is also ok if I pick up my block and put it back again. I haven't really found a pattern yet. It is probably (and likely) a logic error in my code but I can't see it and putting a 'printf' in the updateEntity() shows that the updateEntity() is not called for some reason.

 

Edit: also I have only been able to reproduce this on SMP. In single player it always seems to work fine.

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.

Announcements



×
×
  • Create New...

Important Information

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