BTW-Community / BTW-Public

Community repository for the BTW CE mod
http://www.sargunster.com/btwforum/
Creative Commons Attribution 4.0 International
104 stars 13 forks source link

Change check for mob spawning to use generic leaf check instead of block id check #297

Open ammoore00 opened 1 year ago

ammoore00 commented 1 year ago

EntityMob.canSpawnOnBlockBelow and EntityMob.canSapwnOnBlock are the relevant methods, although it will need a bit of tweaking since the current leaf check code takes coordinates.

Hirachosan commented 1 month ago

I remembered this ticket when working on passable leaves and thought I could take a look. But not really sure what you mean by this? like change isLeafBlock to isLeafBlock() {return blockMaterial == Material.leaves} ?