Skip to content

Commit 9a3eafd

Browse files
committed
Clarify nullability for gamerules.
1 parent a53eba1 commit 9a3eafd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/gamerules.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*/
1313
methodmap CGameRules < CBaseEntity
1414
{
15+
// this entity is intentionally non-nullable, the only way to retrieve an instance of gamerules is through `GetEntity`.
16+
1517
/**
16-
* Returns the gamerules proxy entity for this game, or null if the entity has not been created yet.
18+
* Returns the gamerules proxy entity for this game, or `INVALID_ENTITY` if the entity has not been created yet.
1719
*/
1820
public static CGameRules GetEntity()
1921
{

0 commit comments

Comments
 (0)