mirror of
https://git.neolegacy.dev/pieeebot/cafeberry.git
synced 2026-09-24 22:22:07 +00:00
fix(TU20): more TU20 bug fixes
TU20: Fixed issue where name tags do not appear to work correctly on the wither, iron golems, and wither skeletons. Fix for issue where creepers hover off the floor. --------- Co-authored-by: pieeebot <[email protected]> Reviewed-on: https://git.neolegacy.dev/pieeebot/mc_pieLCE/pulls/5 Co-authored-by: qloak <[email protected]> Co-committed-by: qloak <[email protected]>
This commit is contained in:
committed by
pieeebot
co-authored by
pieeebot
parent
d236b70546
commit
e1508731d0
@@ -6,7 +6,7 @@
|
|||||||
// 4J - added
|
// 4J - added
|
||||||
void CreeperModel::_init(float g)
|
void CreeperModel::_init(float g)
|
||||||
{
|
{
|
||||||
int yo = 4;
|
int yo = 6;
|
||||||
|
|
||||||
head = new ModelPart(this, 0, 0);
|
head = new ModelPart(this, 0, 0);
|
||||||
head->addBox(-4, - 8, -4, 8, 8, 8, g); // Head
|
head->addBox(-4, - 8, -4, 8, 8, 8, g); // Head
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
#include "AttackDamageMobEffect.h"
|
#include "AttackDamageMobEffect.h"
|
||||||
|
|
||||||
AttackDamageMobEffect::AttackDamageMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color)
|
AttackDamageMobEffect::AttackDamageMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
double AttackDamageMobEffect::getAttributeModifierValue(int amplifier, AttributeModifier *original)
|
double AttackDamageMobEffect::getAttributeModifierValue(int amplifier, AttributeModifier *original)
|
||||||
{
|
{
|
||||||
if (id == MobEffect::weakness->id)
|
if (id == MobEffect::weakness->id)
|
||||||
{
|
{
|
||||||
return -0.5f * (amplifier + 1);
|
return -0.5f * (amplifier + 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return 1.3 * (amplifier + 1);
|
return 1.3 * (amplifier + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user