Posted January 10, 201510 yr 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,
January 10, 201510 yr As long as it is in a loaded chunk updateEntity should always be called every tick. Is it in a loaded chunk? I am the author of Draconic Evolution
January 10, 201510 yr Author 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(); } }
January 10, 201510 yr Author 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.