mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-03 15:08:23 +01:00
Make /npc mount use mount trait
This commit is contained in:
parent
905dff7eec
commit
7935dd2ab6
@ -1996,7 +1996,7 @@ public class NPCCommands {
|
||||
if (mount.equals(npc))
|
||||
throw new CommandException(Messages.MOUNT_TRIED_TO_MOUNT_NPC_ON_ITSELF);
|
||||
|
||||
NMS.mount(mount.getEntity(), npc.getEntity());
|
||||
npc.getOrAddTrait(MountTrait.class).setMountedOn(mount.getUniqueId());
|
||||
return;
|
||||
}
|
||||
if (args.hasFlag('c')) {
|
||||
|
Loading…
Reference in New Issue
Block a user