Skip to content

Conversation

@bobthequail
Copy link

Fixes #752 by using Entity#getPersistentDataContainer to store the player that last hit an entity and then using that stored value in both dealing with entity damage and entity death events. This gets around the five second limit built into the Entity#getKiller function.

BuildTools and others added 5 commits December 20, 2025 18:54
Still fallback to last damage event damager if null. It doesn't really fix LMBishop#752, however possibly allows for Fire Aspect tracking of entities ignited within last 5 seconds (similarly to different built-in game mechanics).
# Conflicts:
#	bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/MobkillingTaskType.java
@Krakenied
Copy link
Collaborator

Krakenied commented Dec 23, 2025

Tbh, storing any persistent data on blocks, entities and other just for Quests completion is a big no-no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fire aspect issue

2 participants