realmayus / YouMatter

A standalone UU-Matter mod for Minecraft Forge. Why? Because it matters.
https://www.curseforge.com/minecraft/mc-mods/youmatter
MIT License
1 stars 3 forks source link

Port to 1.16.4 #54

Closed bl4ckscor3 closed 4 years ago

bl4ckscor3 commented 4 years ago

Note: I am pull requesting this onto branch 1.16.1, because there is none for 1.16.4, however if you want this port to be on a separate branch, you can create a new branch, then change the target branch of this pull request.

I changed the onPlayerDestroy overrides to onBlockHarvested because the world provided by the former is not of the proper type for the ItemEntity constructor, and the shulker box uses that as well to make it drop like it does. At the same time, I removed the null check before the instanceof check, because instanceof implicitly checks for null. You don't need an extra null check infront of an instanceof. I also fixed launch configs not generating properly.

Also a couple things that I noticed, but have not included in this PR:

realmayus commented 4 years ago

Thanks a lot! 😄