Skip to content

Commit

Permalink
misc: 排除 CREAKING_TRANSIENT
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Nov 29, 2024
1 parent 3726f2b commit e8d72f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,12 @@ private void onPlayerKillEntity(Player player, Entity entity)
if (entity instanceof Player targetPlayer)
morphs.grantMorphToPlayer(player, DisguiseTypes.PLAYER.toId(targetPlayer.getName()));
else
morphs.grantMorphToPlayer(player, entity.getType().getKey().asString());
{
var type = entity.getType();
if (type == EntityType.CREAKING_TRANSIENT)
type = EntityType.CREAKING;

morphs.grantMorphToPlayer(player, type.getKey().asString());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public VanillaDisguiseProvider()

for (var eT : EntityType.values())
{
if (eT == EntityType.UNKNOWN || !eT.isAlive()) continue;
if (eT == EntityType.UNKNOWN || eT == EntityType.CREAKING_TRANSIENT || !eT.isAlive()) continue;

list.add(eT.getKey().getKey());
}
Expand Down

0 comments on commit e8d72f7

Please sign in to comment.