From c77a734949ea5cbb6259191643365f34fde866b4 Mon Sep 17 00:00:00 2001 From: rumickon Date: Sat, 14 Feb 2015 19:49:34 +0300 Subject: [PATCH] Fix removing flags --- core/src/main/java/com/griefcraft/model/Protection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/griefcraft/model/Protection.java b/core/src/main/java/com/griefcraft/model/Protection.java index 34386f3a5..f56e7d22a 100644 --- a/core/src/main/java/com/griefcraft/model/Protection.java +++ b/core/src/main/java/com/griefcraft/model/Protection.java @@ -497,7 +497,7 @@ public void removeFlag(Flag flag) { return; } - flags.remove(flag); + flags.remove(flag.getType()); this.modified = true; }