Call updateCapabilities() after setMayFly
With CanaryMod, this appears to be required for capabilities to take effect.
This commit is contained in:
parent
78ae505504
commit
62bd90a563
1 changed files with 1 additions and 0 deletions
1
src/docs/templates/ypgpm.md
vendored
1
src/docs/templates/ypgpm.md
vendored
|
@ -859,6 +859,7 @@ var utils = require('utils');
|
||||||
var players = utils.players();
|
var players = utils.players();
|
||||||
utils.foreach( players, function( player ) {
|
utils.foreach( players, function( player ) {
|
||||||
player.capabilities.setMayFly(true);
|
player.capabilities.setMayFly(true);
|
||||||
|
player.updateCapabilities();
|
||||||
} );
|
} );
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Reference in a new issue