From 7b0db672d1ff72caec1f45cbc0c855680337766d Mon Sep 17 00:00:00 2001 From: changyong guo Date: Mon, 23 Jul 2018 07:35:32 +0800 Subject: Keep players in gmNotSet (#4248) This allows players game mode to update to the default after portal to another world. Fixes #4207 --- src/Items/ItemBucket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Items/ItemBucket.h') diff --git a/src/Items/ItemBucket.h b/src/Items/ItemBucket.h index 2c93c3856..f45dbae3e 100644 --- a/src/Items/ItemBucket.h +++ b/src/Items/ItemBucket.h @@ -140,7 +140,7 @@ public: return false; } - if (a_Player->GetGameMode() != gmCreative) + if (!a_Player->IsGameModeCreative()) { // Remove fluid bucket, add empty bucket: if (!a_Player->GetInventory().RemoveOneEquippedItem()) -- cgit v1.2.3