Skip to content

Commit

Permalink
0.5.1 AutoMountain fix
Browse files Browse the repository at this point in the history
**0.5.1**
-Made AutoMountain only attempt to place the block beneath your feet for one tick, when pausing as a result of the PauseBasedAntikick feature. (If you insist upon using Viafabric this will help make block placement more consistent when on older servers)
-Added a couple more splash texts
  • Loading branch information
etianl authored Apr 8, 2023
1 parent e0d0350 commit da3e0c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn_mappings=1.19.4+build.1
loader_version=0.14.17

# Mod Properties
mod_version=0.5.0-1.19.4
mod_version=0.5.1-1.19.4
maven_group=pwn.noobs
archives_base_name=1trouser-streak

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ private static List<String> getTrouserSplashes() {
"in ur servers, breaking ur blocks",
"Steve did nothing wrong.",
"Make Minecraft Great Again!",
"Make Mountains, not war."
"Make Mountains, not war.",
"Old versions of Meteor are not supported! -Meteor Client Discord",
"Stop and take time to smell the explosions."
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ public AutoMountain() {
}
private int delayLeft = delay.get();
private int offLeft = offTime.get();

// Fields
private int pauseplaceticks=0;
private BlockPos playerPos;
private int cookie=0;
private int speed=0;
Expand Down Expand Up @@ -382,11 +381,14 @@ else if (delayakick.get() && offLeft>offTime.get()){
offLeft=offTime.get();
}
if (delayLeft>0){
pauseplaceticks++;
if (pauseplaceticks<=1){
BlockPos pos = playerPos.add(new Vec3i(0,-1,0));
if (mc.world.getBlockState(pos).getMaterial().isReplaceable()) {
mc.interactionManager.interactBlock(mc.player, Hand.MAIN_HAND, new BlockHitResult(Vec3d.of(pos), Direction.DOWN, pos, false));
mc.player.swingHand(Hand.MAIN_HAND);}
}
}
} else if (delayLeft==0) pauseplaceticks=0;
PlayerUtils.centerPlayer();
if (pause = true){
if (Modules.get().get(Flight.class).isActive()) {
Expand Down

0 comments on commit da3e0c9

Please sign in to comment.