feat: better kill command, Host Privileges check (#135)
i changed a bit the kill command because it was not working properly, then i added a check for HostPrivileges for each command
This commit is contained in:
@@ -1170,7 +1170,13 @@ bool EnderDragon::hurt(shared_ptr<MultiEntityMobPart> MultiEntityMobPart, Damage
|
||||
|
||||
bool EnderDragon::hurt(DamageSource *source, float damage)
|
||||
{
|
||||
return false;
|
||||
if (source == DamageSource::outOfWorld)
|
||||
{
|
||||
setSynchedAction(e_EnderdragonAction_Sitting_Scanning, true);
|
||||
reallyHurt(source, getMaxHealth() + 1);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool EnderDragon::reallyHurt(DamageSource *source, float damage)
|
||||
|
||||
Reference in New Issue
Block a user