summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2018-07-19 23:36:46 +0200
committerGitHub <noreply@github.com>2018-07-19 23:36:46 +0200
commit211cec621e5e23e0e3a9c5e0880ddea24b6418c3 (patch)
treecd9c6a44a95baef198e871ca8c94cc7a20c004ad /src/BlockArea.h
parentAdd unbreaking for armor (#4220) (diff)
downloadcuberite-211cec621e5e23e0e3a9c5e0880ddea24b6418c3.tar
cuberite-211cec621e5e23e0e3a9c5e0880ddea24b6418c3.tar.gz
cuberite-211cec621e5e23e0e3a9c5e0880ddea24b6418c3.tar.bz2
cuberite-211cec621e5e23e0e3a9c5e0880ddea24b6418c3.tar.lz
cuberite-211cec621e5e23e0e3a9c5e0880ddea24b6418c3.tar.xz
cuberite-211cec621e5e23e0e3a9c5e0880ddea24b6418c3.tar.zst
cuberite-211cec621e5e23e0e3a9c5e0880ddea24b6418c3.zip
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r--src/BlockArea.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h
index 60a2821bd..4a68f9a31 100644
--- a/src/BlockArea.h
+++ b/src/BlockArea.h
@@ -120,11 +120,27 @@ public:
/** Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all.
Doesn't wake up the simulators. */
- bool Write(cForEachChunkProvider & a_ForEachChunkProvider, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes = baTypes | baMetas | baBlockEntities);
+ bool Write(cForEachChunkProvider & a_ForEachChunkProvider, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes);
/** Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all.
Doesn't wake up the simulators. */
- bool Write(cForEachChunkProvider & a_ForEachChunkProvider, const Vector3i & a_MinCoords, int a_DataTypes = baTypes | baMetas | baBlockEntities);
+ bool Write(cForEachChunkProvider & a_ForEachChunkProvider, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ)
+ {
+ // Write all available data
+ return Write(a_ForEachChunkProvider, a_MinBlockX, a_MinBlockY, a_MinBlockZ, GetDataTypes());
+ }
+
+ /** Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all.
+ Doesn't wake up the simulators. */
+ bool Write(cForEachChunkProvider & a_ForEachChunkProvider, const Vector3i & a_MinCoords, int a_DataTypes);
+
+ /** Writes the area back into cWorld at the coords specified. Returns true if successful in all chunks, false if only partially / not at all.
+ Doesn't wake up the simulators. */
+ bool Write(cForEachChunkProvider & a_ForEachChunkProvider, const Vector3i & a_MinCoords)
+ {
+ // Write all available data
+ return Write(a_ForEachChunkProvider, a_MinCoords.x, a_MinCoords.y, a_MinCoords.z, GetDataTypes());
+ }
// tolua_begin