mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +01:00
Lets keep subtype in 1.13
This commit is contained in:
parent
99f13e5c47
commit
e2e3bdbbda
@ -21,10 +21,8 @@ package com.gamingmesh.jobs.actions;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
|
||||
import com.gamingmesh.jobs.Jobs;
|
||||
import com.gamingmesh.jobs.container.ActionInfo;
|
||||
import com.gamingmesh.jobs.container.ActionType;
|
||||
import com.gamingmesh.jobs.CMILib.VersionChecker.Version;
|
||||
|
||||
public class BlockActionInfo extends MaterialActionInfo implements ActionInfo {
|
||||
public BlockActionInfo(Block block, ActionType type) {
|
||||
@ -32,8 +30,6 @@ public class BlockActionInfo extends MaterialActionInfo implements ActionInfo {
|
||||
}
|
||||
|
||||
private static byte getData(Block block) {
|
||||
if (Jobs.getVersionCheckManager().getVersion().isEqualOrHigher(Version.v1_13_R1))
|
||||
return 0;
|
||||
@SuppressWarnings("deprecation")
|
||||
byte data = block.getData();
|
||||
if (block.getType() == Material.COCOA)
|
||||
|
@ -1125,37 +1125,6 @@ public class ConfigManager {
|
||||
}
|
||||
}
|
||||
|
||||
switch (actionType) {
|
||||
case BREED:
|
||||
case CUSTOMKILL:
|
||||
case BREW:
|
||||
case EXPLORE:
|
||||
case FISH:
|
||||
case KILL:
|
||||
case MILK:
|
||||
case MMKILL:
|
||||
case SHEAR:
|
||||
case TAME:
|
||||
break;
|
||||
case TNTBREAK:
|
||||
case SMELT:
|
||||
case REPAIR:
|
||||
case PLACE:
|
||||
case ENCHANT:
|
||||
case DYE:
|
||||
case EAT:
|
||||
case DRINK:
|
||||
case CRAFT:
|
||||
case BREAK:
|
||||
if (Jobs.getVersionCheckManager().getVersion().isEqualOrHigher(Version.v1_13_R1)) {
|
||||
subType = "";
|
||||
meta = "";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
jobInfo.add(new JobInfo(actionType, id, meta, type + subType, income, incomeEquation, experience, expEquation, pointsEquation, points, fromlevel,
|
||||
untilLevel, section.getCurrentPath(), softIncomeLimit, softExpLimit, softPointsLimit));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user