Skip to content

Commit

Permalink
Merge pull request #1644 from ManInMyVan/weaving
Browse files Browse the repository at this point in the history
fix weaving falses
  • Loading branch information
SamB440 authored Aug 14, 2024
2 parents cea8169 + 4bb0835 commit 6ba64ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/ac/grim/grimac/utils/nmsutil/Collisions.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.github.retrooper.packetevents.PacketEvents;
import com.github.retrooper.packetevents.manager.server.ServerVersion;
import com.github.retrooper.packetevents.protocol.player.ClientVersion;
import com.github.retrooper.packetevents.protocol.potion.PotionTypes;
import com.github.retrooper.packetevents.protocol.world.chunk.BaseChunk;
import com.github.retrooper.packetevents.protocol.world.states.WrappedBlockState;
import com.github.retrooper.packetevents.protocol.world.states.defaulttags.BlockTags;
Expand Down Expand Up @@ -449,7 +450,11 @@ public static void handleInsideBlocks(GrimPlayer player) {
StateType blockType = block.getType();

if (blockType == StateTypes.COBWEB) {
player.stuckSpeedMultiplier = new Vector(0.25, 0.05000000074505806, 0.25);
if (player.compensatedEntities.getSelf().potionsMap.containsKey(PotionTypes.WEAVING)) {
player.stuckSpeedMultiplier = new Vector(0.5, 0.25, 0.5);
} else {
player.stuckSpeedMultiplier = new Vector(0.25, 0.05000000074505806, 0.25);
}
}

if (blockType == StateTypes.SWEET_BERRY_BUSH
Expand Down

0 comments on commit 6ba64ba

Please sign in to comment.