06-26-2018, 11:21 AM
Hi ,
I want to fix bug about player can be knockback by TNT explosion in creative mode.
I checked source code and found explosion use cEntity::AddSpeed method to apply knockback effect.
What I am not sure is this:
is it proper to override AddSpeed method in cPlayer class to ignore knockback effect?
I searched source code, AddSpeed is used for all knockback effect including knockback from mob attack, I am not sure if I miss others that need to call this function in creative mode?
Best regards
Changyong
I want to fix bug about player can be knockback by TNT explosion in creative mode.
I checked source code and found explosion use cEntity::AddSpeed method to apply knockback effect.
What I am not sure is this:
is it proper to override AddSpeed method in cPlayer class to ignore knockback effect?
I searched source code, AddSpeed is used for all knockback effect including knockback from mob attack, I am not sure if I miss others that need to call this function in creative mode?
Best regards
Changyong