forked from MTSR/mapserver
parent
8e3b5280ba
commit
752e25730a
@ -64,7 +64,10 @@ export default L.LayerGroup.extend({
|
|||||||
isPlayerInCurrentLayer: function(player){
|
isPlayerInCurrentLayer: function(player){
|
||||||
var mapLayer = layerMgr.getCurrentLayer();
|
var mapLayer = layerMgr.getCurrentLayer();
|
||||||
|
|
||||||
return (player.pos.y >= (mapLayer.from*16) && player.pos.y <= (mapLayer.to*16));
|
return (
|
||||||
|
player.pos.y >= (mapLayer.from*16) &&
|
||||||
|
player.pos.y <= ((mapLayer.to*16) + 15)
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
onMinetestUpdate: function(/*info*/){
|
onMinetestUpdate: function(/*info*/){
|
||||||
|
Loading…
Reference in New Issue
Block a user