mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-02-04 13:41:30 +01:00
Fix 1.8 compatibility
This commit is contained in:
parent
4301ec5487
commit
4b2c65fe62
@ -89,6 +89,11 @@ public enum CompatibleHand {
|
||||
return null;
|
||||
}
|
||||
|
||||
//getItemInMainHand doesn't exist in 1.8
|
||||
if (ServerVersion.isServerVersion(ServerVersion.V1_8)) {
|
||||
return equipment.getItemInHand();
|
||||
}
|
||||
|
||||
if (this == MAIN_HAND) {
|
||||
return equipment.getItemInMainHand();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user