diff --git a/toontown/toon/ToonDNA.py b/toontown/toon/ToonDNA.py index 4507efc..a22a307 100644 --- a/toontown/toon/ToonDNA.py +++ b/toontown/toon/ToonDNA.py @@ -2519,7 +2519,10 @@ class ToonDNA(AvatarDNA.AvatarDNA): return True def makeFromNetString(self, string): - dg = PyDatagram(string) + if type(string) == bytes: + dg = PyDatagram(string) + else: + dg = PyDatagram(string.encode('utf-8')) dgi = PyDatagramIterator(dg) self.type = dgi.getFixedString(1) if self.type == 't':