mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-26 11:07:59 +01:00
Fix controllable order for NMS#mount
This commit is contained in:
parent
215efc1f5a
commit
7fb0a12315
@ -78,7 +78,7 @@ public class Controllable extends Trait implements Toggleable, CommandConfigurab
|
||||
if (ownerRequired && !npc.getTrait(Owner.class).isOwnedBy(handle.getBukkitEntity())) {
|
||||
return;
|
||||
}
|
||||
NMS.mount(player, npc.getEntity());
|
||||
NMS.mount(npc.getEntity(), player);
|
||||
}
|
||||
|
||||
private net.minecraft.server.v1_9_R1.Entity getHandle() {
|
||||
|
@ -550,7 +550,7 @@ public class NMS {
|
||||
public static void mount(org.bukkit.entity.Entity entity, org.bukkit.entity.Entity passenger) {
|
||||
if (NMS.getHandle(passenger) == null)
|
||||
return;
|
||||
NMS.getHandle(entity).startRiding(NMS.getHandle(passenger));
|
||||
NMS.getHandle(passenger).startRiding(NMS.getHandle(entity));
|
||||
}
|
||||
|
||||
public static void openHorseScreen(Horse horse, Player equipper) {
|
||||
|
Loading…
Reference in New Issue
Block a user