From 749c04f5857e75d98501206496cf054860f966b0 Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Mon, 11 Feb 2013 19:27:09 +0100 Subject: [PATCH] Fixed bug where renaming a gate did create a duplicate gate on save. --- src/de/craftinc/gates/Gate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/craftinc/gates/Gate.java b/src/de/craftinc/gates/Gate.java index 5602517..6d513b4 100644 --- a/src/de/craftinc/gates/Gate.java +++ b/src/de/craftinc/gates/Gate.java @@ -181,7 +181,7 @@ public class Gate extends BaseGate implements ConfigurationSerializable gate.setId(newId); - delete(oldId); + instances.remove(oldId); instances.put(gate.id, gate); }