From be841b4769cac98a932148bcdf6013f2dcac4ea2 Mon Sep 17 00:00:00 2001 From: "[IPSA] Chris de Claverie" Date: Thu, 1 Oct 2020 12:38:10 +0200 Subject: Add SetBlockMeta warning in documentation (#4943) + Add SetBlockMeta warning in documentation Co-authored-by: pwnOrbitals --- Server/Plugins/APIDump/Classes/BlockArea.lua | 5 ++++- Server/Plugins/APIDump/Classes/World.lua | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'Server/Plugins/APIDump/Classes') diff --git a/Server/Plugins/APIDump/Classes/BlockArea.lua b/Server/Plugins/APIDump/Classes/BlockArea.lua index f4c47d063..a826bb713 100644 --- a/Server/Plugins/APIDump/Classes/BlockArea.lua +++ b/Server/Plugins/APIDump/Classes/BlockArea.lua @@ -37,6 +37,9 @@ return
  • Modify blocks inside cBlockArea
  • Write the area back to a world / save to file
  • +

    + Calls to any setter of this class will not trigger simulator updates (lava, water, redstone). +

    ]], Functions = { @@ -1621,7 +1624,7 @@ return Type = "number", }, }, - Notes = "Sets the block meta at the specified absolute coords", + Notes = "Sets the block meta at the specified absolute coords.", }, SetBlockSkyLight = { diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua index 62e53ace6..b86a84e71 100644 --- a/Server/Plugins/APIDump/Classes/World.lua +++ b/Server/Plugins/APIDump/Classes/World.lua @@ -2802,7 +2802,7 @@ function OnAllChunksAvailable() All return values from the callbacks are i Type = "number", }, }, - Notes = "Sets the meta for the block at the specified coords.", + Notes = "Sets the meta for the block at the specified coords. Any call to SetBlockMeta will not generate a simulator update (water, lava, redstone), consider using SetBlock instead.", }, { Params = @@ -2816,7 +2816,7 @@ function OnAllChunksAvailable() All return values from the callbacks are i Type = "number", }, }, - Notes = "Sets the meta for the block at the specified coords.", + Notes = "Sets the meta for the block at the specified coords. Any call to SetBlockMeta will not generate a simulator update (water, lava, redstone), consider using SetBlock instead.", }, }, SetChunkAlwaysTicked = -- cgit v1.2.3