@@ -118,10 +118,12 @@ public sealed partial class PolymorphSystem : EntitySystem
|
||||
|
||||
private void OnPolymorphActionEvent(Entity<PolymorphableComponent> ent, ref PolymorphActionEvent args)
|
||||
{
|
||||
if (!_proto.TryIndex(args.ProtoId, out var prototype))
|
||||
if (!_proto.TryIndex(args.ProtoId, out var prototype) || args.Handled)
|
||||
return;
|
||||
|
||||
PolymorphEntity(ent, prototype.Configuration);
|
||||
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
private void OnRevertPolymorphActionEvent(Entity<PolymorphedEntityComponent> ent,
|
||||
|
||||
Reference in New Issue
Block a user