aboutsummaryrefslogtreecommitdiff
path: root/advtrains/textures/advtrains_track_swrst.png
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-06-18 21:03:21 +0200
committerorwell96 <orwell@bleipb.de>2019-12-05 10:15:54 +0100
commit02025f53aae8dcae757788dd6dd1378693587988 (patch)
tree4378786450d7f34374585fe82e7ce5cd399ef88a /advtrains/textures/advtrains_track_swrst.png
parent9c1d3565058799f21b6985c100ccf1abe045d3da (diff)
downloadadvtrains-02025f53aae8dcae757788dd6dd1378693587988.tar.gz
advtrains-02025f53aae8dcae757788dd6dd1378693587988.tar.bz2
advtrains-02025f53aae8dcae757788dd6dd1378693587988.zip
Move attachment positions down 1 node
Diffstat (limited to 'advtrains/textures/advtrains_track_swrst.png')
0 files changed, 0 insertions, 0 deletions
151' href='#n151'>151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
/*
Minetest
Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "content_nodemeta.h"
#include "nodemetadata.h"
#include "nodetimer.h"
#include "inventory.h"
#include "log.h"
#include "serialization.h"
#include "util/serialize.h"
#include "util/string.h"
#include "constants.h" // MAP_BLOCKSIZE
#include <sstream>

#define NODEMETA_GENERIC 1
#define NODEMETA_SIGN 14
#define NODEMETA_CHEST 15
#define NODEMETA_FURNACE 16
#define NODEMETA_LOCKABLE_CHEST 17

// Returns true if node timer must be set
static bool content_nodemeta_deserialize_legacy_body(
		std::istream &is, s16 id, NodeMetadata *meta)
{
	meta->clear();

	if(id == NODEMETA_GENERIC) // GenericNodeMetadata (0.4-dev)
	{
		meta->getInventory()->deSerialize(is);