Jump to content

[1.8] Request to change BlockBush.canPlaceBlockOn()


10paktimbits

Recommended Posts

Purpose: allow vanilla plants to recognize a modded block as a soil/ground block

 

Current code:

 

return ground == Blocks.grass || ground == Blocks.dirt || ground == Blocks.farmland;

 

allows vanilla plants to detect these specific blocks, but not any other blocks.

 

Possible change to this code:

(1) check material type of ground block

 

or perhaps even better

 

(2) call canSustainPlant() in the ground block

 

 

Thank you for any consideration offered to this.

Link to comment
Share on other sites

  • 2 weeks later...
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.