File tree Expand file tree Collapse file tree
src/main/java/com/github/elenterius/biomancy/loot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,8 +179,8 @@ protected LootParams createLootParams(LootContext context) {
179179 .withParameter (LootContextParams .THIS_ENTITY , context .getParam (LootContextParams .THIS_ENTITY ))
180180 .withParameter (LootContextParams .ORIGIN , context .getParam (LootContextParams .ORIGIN ))
181181 .withParameter (LootContextParams .DAMAGE_SOURCE , context .getParam (LootContextParams .DAMAGE_SOURCE ))
182- .withOptionalParameter (LootContextParams .KILLER_ENTITY , context .getParam (LootContextParams .KILLER_ENTITY ))
183- .withOptionalParameter (LootContextParams .DIRECT_KILLER_ENTITY , context .getParam (LootContextParams .DIRECT_KILLER_ENTITY ));
182+ .withOptionalParameter (LootContextParams .KILLER_ENTITY , context .getParamOrNull (LootContextParams .KILLER_ENTITY ))
183+ .withOptionalParameter (LootContextParams .DIRECT_KILLER_ENTITY , context .getParamOrNull (LootContextParams .DIRECT_KILLER_ENTITY ));
184184
185185 if (context .hasParam (LootContextParams .LAST_DAMAGE_PLAYER )) {
186186 Player player = context .getParam (LootContextParams .LAST_DAMAGE_PLAYER );
You can’t perform that action at this time.
0 commit comments