Use addPassenger() when mounting players on horses.
setPassenger() is deprecated. Partial fix for #406
This commit is contained in:
1 parent
cd1f7ff797
commit
6c6e979b9e
1 file changed
+1
-1
@@ -959,7 +959,7 @@ public class ArenaImpl implements Arena
|
||||
}
|
||||
mount.setTamed(true);
|
||||
mount.setOwner(p);
|
||||
mount.setPassenger(p);
|
||||
mount.addPassenger(p);
|
||||
mount.setHealth(mount.getMaxHealth());
|
||||
|
||||
// Add saddle
|
||||
|
||||
Reference in new issue
Block a user