Skip to content

Commit

Permalink
Fixed bug that caused mob loot to break.
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterdebot committed Feb 28, 2021
1 parent ad9c750 commit 1592f2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private void handleMobLoot(EntityDeathEvent event){
LootConfiguration<EntityType> lootConfig = mobLoots.get(entity);

event.getDrops().clear();
event.getDrops().forEach(item -> event.getDrops().add(item.clone()));
lootConfig.getLoot().forEach(item -> event.getDrops().add(item.clone()));
event.setDroppedExp(lootConfig.getAddXp());

UhcItems.spawnExtraXp(event.getEntity().getLocation(),lootConfig.getAddXp());
Expand Down

0 comments on commit 1592f2c

Please sign in to comment.