From 704cedcffdecb607b51dd7a614734d25b994ae78 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Mon, 12 Sep 2011 13:29:58 -1000 Subject: [PATCH] add GameType property --- infiniteworld.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infiniteworld.py b/infiniteworld.py index 9fdd556..aa73872 100644 --- a/infiniteworld.py +++ b/infiniteworld.py @@ -1354,7 +1354,9 @@ class MCInfdevOldLevel(EntityLevel): LastPlayed = TagProperty('LastPlayed', TAG_Long, lambda self:long(time.time() * 1000)) LevelName = TagProperty('LevelName', TAG_String, lambda self:self.displayName) - + + GameType = TagProperty('GameType', TAG_Int, lambda a:0) #0 for survival, 1 for creative + _bounds = None @property def bounds(self):