Buff barbed wire

This commit is contained in:
Andrew-71 2023-10-02 20:10:01 +03:00
parent bcdda97438
commit cce60f65c6
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ public class BarbedWireBlock extends Block {
public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) {
if (entity instanceof LivingEntity && entity.getType() != EntityType.FOX && entity.getType() != EntityType.BEE) {
entity.slowMovement(state, new Vec3d(0.800000011920929, 0.75, 0.800000011920929));
entity.slowMovement(state, new Vec3d(0.200000011920929, 0.25, 0.200000011920929));
if (!world.isClient && (entity.lastRenderX != entity.getX() || entity.lastRenderZ != entity.getZ())) {
double d = Math.abs(entity.getX() - entity.lastRenderX);
double e = Math.abs(entity.getZ() - entity.lastRenderZ);