Realistic Torches

Realistic Torches

14M Downloads

Use of a tile entity

elifoster opened this issue ยท 3 comments

commented

Why is the torch a tile entity? It looks like what you're using it for could be better handled with block updates (which you actually are doing) than a TE, and it would have better performance.

commented

@elifoster Seems like you are correct. The TE is only used to extinguish the torch during rainfall, which could certainly be handled via random ticks. I'll implement this when I have time later today.

commented

@elifoster It's not possible to get updates each tick from the block class. Best way to get an update (on both client and server side) each tick is to use tile entities. However, if getting random updates (not guaranteed to happen each tick) is not a problem, then using the block class update is preferable from a performance perspective.

commented

Fixed in version 1.10.2-1.6.4.