File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/com/lambda/mixin/entity Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 2525import com .lambda .module .modules .render .ViewModel ;
2626import com .llamalad7 .mixinextras .injector .wrapmethod .WrapMethod ;
2727import com .llamalad7 .mixinextras .injector .wrapoperation .Operation ;
28- import net .minecraft .client .network .ClientPlayerEntity ;
2928import net .minecraft .entity .Entity ;
3029import net .minecraft .entity .LivingEntity ;
3130import net .minecraft .util .math .MathHelper ;
@@ -175,7 +174,7 @@ private int getHandSwingDuration(int constant) {
175174
176175 @ WrapMethod (method = "pushAwayFrom" )
177176 private void wrapPushAwayFrom (Entity entity , Operation <Void > original ) {
178- if ((( Entity ) (( Object ) this )) instanceof ClientPlayerEntity &&
177+ if (lambda$instance == Lambda . getMc (). player &&
179178 Velocity .INSTANCE .isEnabled () &&
180179 Velocity .getPushed ()) return ;
181180 original .call (entity );
You can’t perform that action at this time.
0 commit comments