forked from xjboss/KCauldronX
增加对OptionalForce的检查来确定是否跳过实体tick
This commit is contained in:
parent
9b4631ba9f
commit
2347608151
@ -1079,7 +1079,7 @@
|
|||||||
public void updateEntityWithOptionalForce(Entity p_72866_1_, boolean p_72866_2_)
|
public void updateEntityWithOptionalForce(Entity p_72866_1_, boolean p_72866_2_)
|
||||||
{
|
{
|
||||||
+ if (p_72866_1_.isDead) return;
|
+ if (p_72866_1_.isDead) return;
|
||||||
+ if(!CauldronHooks.canEntityTick(p_72866_1_,this)){
|
+ if(!CauldronHooks.canEntityTick(p_72866_1_,this)&&!p_72866_2_){
|
||||||
+ p_72866_1_.ticksExisted++;
|
+ p_72866_1_.ticksExisted++;
|
||||||
+ p_72866_1_.inactiveTick();
|
+ p_72866_1_.inactiveTick();
|
||||||
+ return;
|
+ return;
|
||||||
|
Loading…
Reference in New Issue
Block a user