From 26ac146f41091dc070d8075f5fc9de25b5a22578 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 17 Apr 2020 11:36:37 +0200 Subject: More Vector3 in cBlockHandler (#4644) * cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works. --- src/World.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/World.h') diff --git a/src/World.h b/src/World.h index 973ccc117..2d956bf49 100644 --- a/src/World.h +++ b/src/World.h @@ -1043,11 +1043,9 @@ public: return (IsWeatherWet() && !IsBiomeNoDownfall(Biome) && !IsBiomeCold(Biome)); } - /** Returns true if the specified location has wet weather (rain or storm), - using the same logic as IsWeatherWetAt, except that any rain-blocking blocks - above the specified position will block the precipitation and this function - will return false. */ - virtual bool IsWeatherWetAtXYZ(Vector3i a_Pos); + /** Returns true if it is raining or storming at the specified location, + and the rain reaches (the bottom of) the specified block position. */ + virtual bool IsWeatherWetAtXYZ(Vector3i a_Pos) override; /** Returns the seed of the world. */ int GetSeed(void) { return m_Generator.GetSeed(); } @@ -1058,8 +1056,9 @@ public: cWorldStorage & GetStorage (void) { return m_Storage; } cChunkMap * GetChunkMap (void) { return m_ChunkMap.get(); } - /** Sets the blockticking to start at the specified block. Only one blocktick per chunk may be set, second call overwrites the first call */ - void SetNextBlockTick(int a_BlockX, int a_BlockY, int a_BlockZ); // tolua_export + /** Causes the specified block to be ticked on the next Tick() call. + Only one block coord per chunk may be set, a second call overwrites the first call */ + void SetNextBlockToTick(const Vector3i a_BlockPos); // tolua_export int GetMaxSugarcaneHeight(void) const { return m_MaxSugarcaneHeight; } // tolua_export int GetMaxCactusHeight (void) const { return m_MaxCactusHeight; } // tolua_export -- cgit v1.2.3