From 0f8306f0bb33eea962c4311771f8479849b8b9c4 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Sun, 23 Mar 2014 02:01:33 +0400 Subject: [PATCH] Compatible with 1.7.5 Still need to test this --- src/com/cnaude/chairs/vehiclearrow/NMSAccess.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java b/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java index b8f6328..b9b9789 100644 --- a/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java +++ b/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java @@ -17,6 +17,10 @@ public class NMSAccess { String packageName = Bukkit.getServer().getClass().getPackage().getName(); String nmspackageversion = packageName.substring(packageName.lastIndexOf('.') + 1); switch (nmspackageversion) { + case "v1_7_R2": { + nmsArrowClass = Class.forName(pkgname+"."+"nms175"+".NMSChairsArrow"); + return; + } case "v1_7_R1": { nmsArrowClass = Class.forName(pkgname+"."+"nms172"+".NMSChairsArrow"); return;