From: David ‘Bombe’ Roden Date: Sat, 6 Nov 2010 11:09:21 +0000 (+0100) Subject: Use more convenient method from core. X-Git-Tag: 0.2-RC2~8 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9b2dcc3ed5e56a634a6bf4351aa2524e6ae05a99;p=Sone.git Use more convenient method from core. --- diff --git a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java index 065950e..2953b0d 100644 --- a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java @@ -137,12 +137,7 @@ public class SoneTemplatePage extends TemplatePage { if (soneId == null) { return null; } - for (Sone sone : webInterface.getCore().getSones()) { - if (sone.getId().equals(soneId)) { - return sone; - } - } - return null; + return webInterface.getCore().getLocalSone(soneId); } /**