Fix controllable order for NMS#mount

This commit is contained in:
fullwall 2016-03-12 12:30:32 +08:00
parent 215efc1f5a
commit 7fb0a12315
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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) {