mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Merge pull request #24 from jacklin213/bugfix
[BUGFIX] Fixed Extraction Bug, ClassCastException in RapidPunch, Surge/OctoForm making Lava
This commit is contained in:
commit
61f5b19fac
3 changed files with 5 additions and 4 deletions
|
@ -53,13 +53,13 @@ public class TempBlock {
|
|||
instances.get(block).revertBlock();
|
||||
} else {
|
||||
if ((defaulttype == Material.LAVA
|
||||
|| defaulttype == Material.STATIONARY_LAVA || defaulttype == Material.AIR)
|
||||
|| defaulttype == Material.STATIONARY_LAVA)
|
||||
&& Methods.isAdjacentToThreeOrMoreSources(block)) {
|
||||
block.setType(Material.LAVA);
|
||||
block.setData((byte) 0x0);
|
||||
}
|
||||
else if ((defaulttype == Material.WATER
|
||||
|| defaulttype == Material.STATIONARY_WATER || defaulttype == Material.AIR)
|
||||
|| defaulttype == Material.STATIONARY_WATER )
|
||||
&& Methods.isAdjacentToThreeOrMoreSources(block)) {
|
||||
block.setType(Material.WATER);
|
||||
block.setData((byte) 0x0);
|
||||
|
|
|
@ -56,13 +56,14 @@ public class RapidPunch {
|
|||
if (target instanceof LivingEntity && target != null) {
|
||||
LivingEntity lt = (LivingEntity) target;
|
||||
Methods.damageEntity(p, target, damage);
|
||||
if (target instanceof Player)
|
||||
if (target instanceof Player) {
|
||||
if (ChiPassive.willChiBlock((Player) target)) {
|
||||
ChiPassive.blockChi((Player) target);
|
||||
}
|
||||
if(Suffocate.isChannelingSphere((Player) target)) {
|
||||
Suffocate.remove((Player) target);
|
||||
}
|
||||
}
|
||||
lt.setNoDamageTicks(0);
|
||||
}
|
||||
cooldowns.put(p.getName(), System.currentTimeMillis());
|
||||
|
|
|
@ -59,7 +59,7 @@ public class Extraction {
|
|||
|
||||
private int getAmount() {
|
||||
Random rand = new Random();
|
||||
return rand.nextInt(99) + 1 <= triplechance ? 3 : rand.nextInt(99) + 1 <= doublechance ? 2: 0;
|
||||
return rand.nextInt(99) + 1 <= triplechance ? 3 : rand.nextInt(99) + 1 <= doublechance ? 2: 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue