[API bug?] surface_index of event is 0
Posted: Tue Oct 03, 2017 4:49 am
I tried outputting the contents of some on_player_mine events, specifically on_player_mined_tile, and the surface_index is coming back as 0, which isn't a real surface. At first I thought this was because I had made water minable and was mining it off the map, but it was also true of stone paths.
Is this an intended behavior? Is this a bug in the API returning an incorrect index?
I have attached the test mod in question in case it's relevant. It's a very simple test mod adding a single item and recipe and making water minable, and altering the properties of fish; mostly it broadcasts a lot of information about mining events. I'm running with just this test mod and basemod. (Note: you need to be holding a stone brick in order to mine water because that's how tile mining works)
Is this an intended behavior? Is this a bug in the API returning an incorrect index?
I have attached the test mod in question in case it's relevant. It's a very simple test mod adding a single item and recipe and making water minable, and altering the properties of fish; mostly it broadcasts a lot of information about mining events. I'm running with just this test mod and basemod. (Note: you need to be holding a stone brick in order to mine water because that's how tile mining works)