From 5b7dace2fe854fe6fce44ffa7b320a0f096b7318 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 4 Feb 2016 23:17:15 -1000 Subject: [PATCH] Implement EntityListProxy.remove() --- src/mceditlib/worldeditor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mceditlib/worldeditor.py b/src/mceditlib/worldeditor.py index 90221a4..b66c96c 100644 --- a/src/mceditlib/worldeditor.py +++ b/src/mceditlib/worldeditor.py @@ -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.