mirror of
https://github.com/xSquishyLiam/mc-GeyserModelEngine-plugin.git
synced 2025-12-19 14:59:19 +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) {
|
||||
if (event.isCancelled())
|
||||
if (event.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map<ActiveModel, ModelEntity> model = ModelEntity.ENTITIES.get(event.getEntity().getEntityId());
|
||||
if (model != null) {
|
||||
|
||||
Reference in New Issue
Block a user