mirror of
https://github.com/GeyserExtensionists/GeyserModelEngine.git
synced 2025-12-20 15:39:18 +00:00
ignore when cancelled
This commit is contained in:
@@ -86,10 +86,11 @@ public class ModelListener implements Listener {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onModelEntityHurt(EntityDamageEvent event) {
|
public void onModelEntityHurt(EntityDamageEvent event) {
|
||||||
if (event.isCancelled())
|
if (event.isCancelled()) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Map<ActiveModel, ModelEntity> model = ModelEntity.ENTITIES.get(event.getEntity().getEntityId());
|
Map<ActiveModel, ModelEntity> model = ModelEntity.ENTITIES.get(event.getEntity().getEntityId());
|
||||||
if (model != null) {
|
if (model != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user