Skip to content

Commit

Permalink
Remove static from isBelow113
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Mar 13, 2019
1 parent 58f99ab commit a6a7262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/me/pikamug/localelib/LocaleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ public boolean hasBasePotionData() {
*
* @return true if Bukkit version is at 1.12.2 or below
*/
public static boolean isBelow113() {
public boolean isBelow113() {
return _isBelow113(Bukkit.getServer().getBukkitVersion().split("-")[0]);
}

private static boolean _isBelow113(String bukkitVersion) {
private boolean _isBelow113(String bukkitVersion) {
if (bukkitVersion.matches("^[0-9.]+$")) {
switch(bukkitVersion) {
case "1.12.2" :
Expand Down

0 comments on commit a6a7262

Please sign in to comment.