From e41b3845d255dc0f46922ef56de32d788d4a41c3 Mon Sep 17 00:00:00 2001 From: Nicolas BARBOTIN Date: Thu, 15 Feb 2018 16:44:07 +0100 Subject: [PATCH] * Fixed bug with Redstone Controller * Fixed LICENSE --- LICENSE | 2 +- src/main/java/net/montoyo/wd/utilities/Util.java | 2 +- .../webdisplays/textures/items/lasermouse.png | Bin 212 -> 0 bytes 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 src/main/resources/assets/webdisplays/textures/items/lasermouse.png diff --git a/LICENSE b/LICENSE index aa48cb0..c06b61c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Even though the source code is public, the following license: +Even though the source code is public, the following license applies: This software, its source code and its binaries are Copyright © 2018 Nicolas BARBOTIN and are the intellectual property of the author. It may be not be reproduced under any circumstances except for personal, private use as long as it remains in its unaltered, unedited form. diff --git a/src/main/java/net/montoyo/wd/utilities/Util.java b/src/main/java/net/montoyo/wd/utilities/Util.java index 69e5220..2fe34cd 100644 --- a/src/main/java/net/montoyo/wd/utilities/Util.java +++ b/src/main/java/net/montoyo/wd/utilities/Util.java @@ -147,7 +147,7 @@ public abstract class Util { } public static String addProtocol(String str) { - return str.contains("://") ? str : ("http://" + str); + return (str.isEmpty() || str.contains("://")) ? str : ("http://" + str); } public static boolean isFileNameInvalid(String fname) { diff --git a/src/main/resources/assets/webdisplays/textures/items/lasermouse.png b/src/main/resources/assets/webdisplays/textures/items/lasermouse.png deleted file mode 100644 index 2edf0ebbbbcc4a0478b775a160fef6d6e36d1f2b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 212 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdql}<{Wb>{?89*V~%#er@=ltB<)VvZPmw~~#C^fMp zHASI3vm`^o-P1Q9MK6^dC~o2D;uvCaIypgtRpY^b`8L%hA2_9&x_!4OzA%Zrr?_OM v;PlUukrGK9oxw+0ukbT>B{gcjOnAY_@ZQvZ4O6Ma36SBQu6{1-oD!M<+%`OZ