mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-06-17 15:11:59 +00:00
Support for TU24 has been extended.
Since the TU25 update still requires a lot of work and the TU24 version does not yet include all the features, I have decided to continue working with the TU24 version for now. Merge latest changes from Minecraft Consoles: * Added support for Big-Endian DLCs. * Fix redstone tick persistence on chunk unload. * Fix pistons permanently breaking server-wide on dedicated servers. * Fix Ender Dragon damage and End Poem crash. * Disable font mipmapping to get rid of artifacts on signs. Other: * Music Fixes. * Added missing sounds (Caves, Horse Eat, Sheep Shear, Water Swim, Thorns) * Remove duplicated sounds. * Added High Quality ver of "The End Dragon Alive" music. * Fix Mobs sounds volume. * Added Old Swing Animation Option. * Added Graphics Mode (Potato, Fast, Fancy and Extra) * Fix a small memory leak with signs. * Fixed Pig Zombies attacking creative players.
This commit is contained in:
@@ -33,7 +33,11 @@ bool MultiEntityMobPart::isPickable()
|
||||
|
||||
bool MultiEntityMobPart::hurt(DamageSource *source, float damage)
|
||||
{
|
||||
return parentMob.lock()->hurt( dynamic_pointer_cast<MultiEntityMobPart>( shared_from_this() ), source, damage);
|
||||
if (auto parent = parentMob.lock()) {
|
||||
return parent->hurt(dynamic_pointer_cast<MultiEntityMobPart>(shared_from_this()), source, damage);
|
||||
}
|
||||
// If the parent doesn't exist, safely ignore the damage to avoid the Crashing
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MultiEntityMobPart::is(shared_ptr<Entity> other)
|
||||
|
||||
Reference in New Issue
Block a user