Sefiraat / SlimeTinker

An addon that is trying to recreate Tinker's Construct within Slimefun. Adds new customisable tools with leveling and modifiers.
GNU General Public License v3.0
24 stars 32 forks source link

Fix NPE #181

Closed ybw0014 closed 1 year ago

ybw0014 commented 1 year ago

This event can be triggered via both EntityDamageEvent and EntityDamagedByEntityEvent, so the damage source can be null if from EntityDamageEvent, causing getType() throws NPE.

ybw0014 commented 1 year ago

Well it seems the title cannot trigger the linking, I linked manually.