From 916b45a47c8dce3c6837c12d4facb6eb572bb987 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 19 Oct 2010 08:41:56 +0200 Subject: [PATCH] =?utf8?q?Add=20=E2=80=9Cmodified=E2=80=9D=20property.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/template/SoneAccessor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index ee7d16d..d0a287f 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -59,6 +59,8 @@ public class SoneAccessor extends ReflectionAccessor { } else if (member.equals("blocked")) { Sone currentSone = (Sone) dataProvider.getData("currentSone"); return currentSone.isSoneBlocked(sone.getId()); + } else if (member.equals("modified")) { + return sone.getModificationCounter() > 0; } return super.get(dataProvider, object, member); } -- 2.7.4