mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-01 21:11:30 +01:00
Forgot to check for version
This commit is contained in:
parent
3059833910
commit
674529e77a
@ -785,11 +785,12 @@ public class Jobs extends JavaPlugin {
|
|||||||
getDBManager().getDB().loadAllJobsWorlds();
|
getDBManager().getDB().loadAllJobsWorlds();
|
||||||
getDBManager().getDB().loadAllJobsNames();
|
getDBManager().getDB().loadAllJobsNames();
|
||||||
|
|
||||||
instance.getBlockOwnerShip(CMIMaterial.FURNACE).ifPresent(BlockOwnerShip::load);
|
|
||||||
instance.getBlockOwnerShip(CMIMaterial.BREWING_STAND).ifPresent(BlockOwnerShip::load);
|
|
||||||
if (Version.isCurrentEqualOrLower(Version.v1_13_R1)) {
|
if (Version.isCurrentEqualOrLower(Version.v1_13_R1)) {
|
||||||
instance.getBlockOwnerShip(CMIMaterial.LEGACY_BREWING_STAND).ifPresent(BlockOwnerShip::load);
|
instance.getBlockOwnerShip(CMIMaterial.LEGACY_BREWING_STAND).ifPresent(BlockOwnerShip::load);
|
||||||
instance.getBlockOwnerShip(CMIMaterial.LEGACY_BURNING_FURNACE).ifPresent(BlockOwnerShip::load);
|
instance.getBlockOwnerShip(CMIMaterial.LEGACY_BURNING_FURNACE).ifPresent(BlockOwnerShip::load);
|
||||||
|
} else {
|
||||||
|
instance.getBlockOwnerShip(CMIMaterial.FURNACE).ifPresent(BlockOwnerShip::load);
|
||||||
|
instance.getBlockOwnerShip(CMIMaterial.BREWING_STAND).ifPresent(BlockOwnerShip::load);
|
||||||
}
|
}
|
||||||
if (Version.isCurrentEqualOrHigher(Version.v1_14_R1)) {
|
if (Version.isCurrentEqualOrHigher(Version.v1_14_R1)) {
|
||||||
instance.getBlockOwnerShip(CMIMaterial.BLAST_FURNACE).ifPresent(BlockOwnerShip::load);
|
instance.getBlockOwnerShip(CMIMaterial.BLAST_FURNACE).ifPresent(BlockOwnerShip::load);
|
||||||
|
Loading…
Reference in New Issue
Block a user