Skip to content

Commit 6154c0f

Browse files
committed
do not allow alpha werewolf to ride
1 parent 74cb046 commit 6154c0f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main/java/de/teamlapen/werewolves/entities/werewolf/WerewolfAlphaEntity.java

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
import net.minecraft.sounds.SoundEvent;
2222
import net.minecraft.util.Mth;
2323
import net.minecraft.util.RandomSource;
24-
import net.minecraft.world.entity.EntityType;
25-
import net.minecraft.world.entity.LivingEntity;
26-
import net.minecraft.world.entity.MobSpawnType;
27-
import net.minecraft.world.entity.PathfinderMob;
24+
import net.minecraft.world.entity.*;
2825
import net.minecraft.world.entity.ai.attributes.AttributeSupplier;
2926
import net.minecraft.world.entity.ai.attributes.Attributes;
3027
import net.minecraft.world.entity.ai.goal.*;
@@ -34,6 +31,7 @@
3431
import net.minecraft.world.entity.player.Player;
3532
import net.minecraft.world.level.Level;
3633
import net.minecraft.world.level.ServerLevelAccessor;
34+
import org.jetbrains.annotations.NotNull;
3735

3836
import javax.annotation.Nonnull;
3937
import javax.annotation.Nullable;
@@ -114,6 +112,11 @@ public int getMaxFollowerCount() {
114112
return (int) ((BalanceMobProps.mobProps.ADVANCED_VAMPIRE_MAX_FOLLOWER) * ((this.getEntityLevel() + 1) / (float) (this.getMaxEntityLevel() + 1)));
115113
}
116114

115+
@Override
116+
protected boolean canRide(@NotNull Entity pVehicle) {
117+
return false;
118+
}
119+
117120
@Override
118121
public int getPortalWaitTime() {
119122
return 500;

0 commit comments

Comments
 (0)