Slow down with Tile entity
Posted: Sun Oct 08, 2017 2:01 am
Hi,
In my mod Bio Industries, I've added a new tile, called the Musk Floor. It's a tile that creates electricity like a solar panel.
The way it works is that I create a hidden solar panel when you place the floor.
I've has a few posts about this entity causing slow-down when placed in bulk, especially in Multiplayer
I'm not sure why that is, but suspect it has something to do with my check when removing or replacing tile.
Here is that code:
Someone also reported this crash when replacing some tiles. I've never had it crash though.
I've attached the mod and just the control file.
Thanks.
In my mod Bio Industries, I've added a new tile, called the Musk Floor. It's a tile that creates electricity like a solar panel.
The way it works is that I create a hidden solar panel when you place the floor.
I've has a few posts about this entity causing slow-down when placed in bulk, especially in Multiplayer
I'm not sure why that is, but suspect it has something to do with my check when removing or replacing tile.
Here is that code:
Code
Again, this is just a guess. I was hoping someone could possibly review my code and see if there is something I'm doing that would cause this slow-down.Someone also reported this crash when replacing some tiles. I've never had it crash though.
I've attached the mod and just the control file.
Thanks.