Hotfix for Leather being applied to bad item sets.
This commit is contained in:
parent
417ab2d367
commit
a89595fe14
Binary file not shown.
@ -4035,7 +4035,7 @@ public class GenericFunctions {
|
|||||||
}
|
}
|
||||||
Location teleloc = target.getLocation().add(target.getLocation().getDirection().multiply(-1.0-mult));
|
Location teleloc = target.getLocation().add(target.getLocation().getDirection().multiply(-1.0-mult));
|
||||||
int i=0;
|
int i=0;
|
||||||
while (teleloc.getBlock().getType().isSolid()) {
|
while (teleloc.getBlock().getType().isSolid() || teleloc.getBlock().getType()==Material.BEDROCK) {
|
||||||
if (i==0) {
|
if (i==0) {
|
||||||
teleloc=target.getLocation();
|
teleloc=target.getLocation();
|
||||||
} else
|
} else
|
||||||
|
@ -508,7 +508,8 @@ public class Loot {
|
|||||||
if (item.getType().toString().contains("SWORD")) {
|
if (item.getType().toString().contains("SWORD")) {
|
||||||
|
|
||||||
} else
|
} else
|
||||||
if (!GenericFunctions.isEquip(item)) {
|
if (!GenericFunctions.isEquip(item) ||
|
||||||
|
item.getType().name().contains("LEATHER")) {
|
||||||
allowed = false;
|
allowed = false;
|
||||||
}
|
}
|
||||||
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
|
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
|
||||||
@ -519,7 +520,8 @@ public class Loot {
|
|||||||
item.setType(Material.SHIELD);
|
item.setType(Material.SHIELD);
|
||||||
tierbonus/=(custom)?1:2;
|
tierbonus/=(custom)?1:2;
|
||||||
} else
|
} else
|
||||||
if (!GenericFunctions.isEquip(item)) {
|
if (!GenericFunctions.isEquip(item) ||
|
||||||
|
item.getType().name().contains("LEATHER")) {
|
||||||
allowed = false;
|
allowed = false;
|
||||||
}
|
}
|
||||||
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
|
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
|
||||||
@ -529,7 +531,8 @@ public class Loot {
|
|||||||
if (item.getType().toString().contains("SWORD")) {
|
if (item.getType().toString().contains("SWORD")) {
|
||||||
item.setType(Material.valueOf(item.getType().toString().replace("SWORD","")+"AXE"));
|
item.setType(Material.valueOf(item.getType().toString().replace("SWORD","")+"AXE"));
|
||||||
} else
|
} else
|
||||||
if (!GenericFunctions.isEquip(item)) {
|
if (!GenericFunctions.isEquip(item) ||
|
||||||
|
item.getType().name().contains("LEATHER")) {
|
||||||
allowed = false;
|
allowed = false;
|
||||||
}
|
}
|
||||||
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
|
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user