{{newin|[[0.9.0]]|090|type=method|text=It has been renamed from [[World:getAllowSleeping]]}}
Gets the sleep behaviour of the world.

== Function ==
=== Synopsis ===
<source lang="lua">
allow = World:isSleepingAllowed( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|boolean|allow|True if bodies in the world are allowed to sleep, or false if not.}}
== See Also ==
* [[parent::World]]
* [[World:setSleepingAllowed]]
[[Category:Functions]]
{{#set:Description=Gets the sleep behaviour of the world.}}
== Other Languages ==
{{i18n|World:isSleepingAllowed}}