Page 1 of 1

Need Help with Position of something

Posted: Mon May 15, 2017 11:11 pm
by TheSAguy
Hi,

I'm trying to create a mod for a Solar mat. (Attached.)
They way it works is that I create a hidden solar panel with the placement of a tile.

My problem is that I group and delete hidden entities by identifying the position. Because I'm using a combination of Tile and Entities, I'm having a problem getting the same location.
Code
Currently I'm not deleting the hidden solar panel when mining the mat. and I believe the problem is that my position when placing the mat and when mining it is not matching up.
Could someone maybe review what I did and point out where I'm going wrong?

Thanks.