Hotfix for Leather being applied to bad item sets.

This commit is contained in:
sigonasr2 2016-09-04 23:09:15 -05:00
parent 417ab2d367
commit a89595fe14
3 changed files with 7 additions and 4 deletions

Binary file not shown.

View File

@ -4035,7 +4035,7 @@ public class GenericFunctions {
}
Location teleloc = target.getLocation().add(target.getLocation().getDirection().multiply(-1.0-mult));
int i=0;
while (teleloc.getBlock().getType().isSolid()) {
while (teleloc.getBlock().getType().isSolid() || teleloc.getBlock().getType()==Material.BEDROCK) {
if (i==0) {
teleloc=target.getLocation();
} else

View File

@ -508,7 +508,8 @@ public class Loot {
if (item.getType().toString().contains("SWORD")) {
} else
if (!GenericFunctions.isEquip(item)) {
if (!GenericFunctions.isEquip(item) ||
item.getType().name().contains("LEATHER")) {
allowed = false;
}
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
@ -519,7 +520,8 @@ public class Loot {
item.setType(Material.SHIELD);
tierbonus/=(custom)?1:2;
} else
if (!GenericFunctions.isEquip(item)) {
if (!GenericFunctions.isEquip(item) ||
item.getType().name().contains("LEATHER")) {
allowed = false;
}
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
@ -529,7 +531,8 @@ public class Loot {
if (item.getType().toString().contains("SWORD")) {
item.setType(Material.valueOf(item.getType().toString().replace("SWORD","")+"AXE"));
} else
if (!GenericFunctions.isEquip(item)) {
if (!GenericFunctions.isEquip(item) ||
item.getType().name().contains("LEATHER")) {
allowed = false;
}
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);