summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorDarkoGNU <42816979+DarkoGNU@users.noreply.github.com>2022-04-21 20:56:21 +0200
committerGitHub <noreply@github.com>2022-04-21 20:56:21 +0200
commit4f554e91abd861323aaf9f46d75ff0350a519cef (patch)
treea3e986e773d637e5a64dc83f5792d76c1b263802 /src/World.h
parentProtocol sources fixes (#5411) (diff)
downloadcuberite-4f554e91abd861323aaf9f46d75ff0350a519cef.tar
cuberite-4f554e91abd861323aaf9f46d75ff0350a519cef.tar.gz
cuberite-4f554e91abd861323aaf9f46d75ff0350a519cef.tar.bz2
cuberite-4f554e91abd861323aaf9f46d75ff0350a519cef.tar.lz
cuberite-4f554e91abd861323aaf9f46d75ff0350a519cef.tar.xz
cuberite-4f554e91abd861323aaf9f46d75ff0350a519cef.tar.zst
cuberite-4f554e91abd861323aaf9f46d75ff0350a519cef.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h
index 8f37d59df..ea995ebdc 100644
--- a/src/World.h
+++ b/src/World.h
@@ -121,6 +121,9 @@ public:
bool IsPVPEnabled(void) const { return m_bEnabledPVP; }
+ /** Returns true if farmland trampling is enabled */
+ bool IsFarmlandTramplingEnabled(void) const { return m_bFarmlandTramplingEnabled; }
+
bool IsDeepSnowEnabled(void) const { return m_IsDeepSnowEnabled; }
bool ShouldLavaSpawnFire(void) const { return m_ShouldLavaSpawnFire; }
@@ -997,6 +1000,7 @@ private:
eGameMode m_GameMode;
bool m_bEnabledPVP;
+ bool m_bFarmlandTramplingEnabled;
bool m_IsDeepSnowEnabled;
bool m_ShouldLavaSpawnFire;
bool m_VillagersShouldHarvestCrops;