From 3138daa1f8902a9e57d8ff2aa2951a194808b8ae Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 28 May 2013 18:50:44 +0000 Subject: Block entities now receive the cChunk param in their Tick() function They can safely access that chunk and any of its neighbors during ticking. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1526 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/DispenserEntity.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/DispenserEntity.h') diff --git a/source/DispenserEntity.h b/source/DispenserEntity.h index ad6400921..09270e7f8 100644 --- a/source/DispenserEntity.h +++ b/source/DispenserEntity.h @@ -27,13 +27,13 @@ public: private: // cDropSpenser overrides: - virtual void DropSpenseFromSlot(int a_SlotNum) override; + virtual void DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum) override; /// If such a bucket can fit, adds it to m_Contents and returns true bool ScoopUpLiquid(int a_SlotNum, short a_BucketItemType); /// If the a_BlockInFront is liquidable and the empty bucket can fit, does the m_Contents processing and returns true - bool PlaceLiquid(BLOCKTYPE a_BlockInFront, int a_SlotNum); + bool EmptyLiquidBucket(BLOCKTYPE a_BlockInFront, int a_SlotNum); } ; // tolua_export -- cgit v1.2.3