Implement EntityListProxy.remove()

This commit is contained in:
David Vierra 2016-02-04 23:17:15 -10:00
parent e6b0e7c471
commit 5b7dace2fe

View File

@ -76,6 +76,9 @@ class EntityListProxy(collections.MutableSequence):
def insert(self, index, value):
getattr(self.chunk.chunkData, self.attrName).insert(index, value.rootTag)
def remove(self, value):
getattr(self.chunk.chunkData, self.attrName).remove(value.rootTag)
class WorldEditorChunk(object):
"""
This is a 16x16xH chunk in a format-independent world.