Fix Tumble.
This commit is contained in:
parent
4506d0b7c1
commit
a7e10880ea
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
name: TwosideKeeper
|
name: TwosideKeeper
|
||||||
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
||||||
version: 3.7.0
|
version: 3.7.0r1
|
||||||
commands:
|
commands:
|
||||||
money:
|
money:
|
||||||
description: Tells the player the amount of money they are holding.
|
description: Tells the player the amount of money they are holding.
|
||||||
|
@ -2658,6 +2658,7 @@ public class GenericFunctions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void subtractHealth(final LivingEntity entity, double dmg) {
|
public static void subtractHealth(final LivingEntity entity, double dmg) {
|
||||||
|
if (!entity.hasPotionEffect(PotionEffectType.GLOWING) && entity instanceof Player) {
|
||||||
if (entity.getHealth()>dmg) {
|
if (entity.getHealth()>dmg) {
|
||||||
entity.setHealth(entity.getHealth()-dmg);
|
entity.setHealth(entity.getHealth()-dmg);
|
||||||
} else {
|
} else {
|
||||||
@ -2668,6 +2669,7 @@ public class GenericFunctions {
|
|||||||
entity.damage(Integer.MAX_VALUE);
|
entity.damage(Integer.MAX_VALUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean isViewingInventory(Player p) {
|
public static boolean isViewingInventory(Player p) {
|
||||||
PlayerStructure pd = PlayerStructure.GetPlayerStructure(p);
|
PlayerStructure pd = PlayerStructure.GetPlayerStructure(p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user