remove submodule
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m11s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m11s
This commit is contained in:
parent
b8692ab2c1
commit
279d54c920
3 changed files with 21 additions and 5 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,4 +0,0 @@
|
||||||
[submodule "Website"]
|
|
||||||
path = Website
|
|
||||||
url = ssh://git@tudbut.de:222/BaseBand/Website.git
|
|
||||||
branch = main
|
|
|
@ -9,10 +9,12 @@ import de.com.baseband.client.registry.annotation.Description;
|
||||||
import de.com.baseband.client.registry.annotation.Gate;
|
import de.com.baseband.client.registry.annotation.Gate;
|
||||||
import de.com.baseband.client.registry.annotation.Range;
|
import de.com.baseband.client.registry.annotation.Range;
|
||||||
import de.com.baseband.client.util.adapt.Marker;
|
import de.com.baseband.client.util.adapt.Marker;
|
||||||
|
import de.com.baseband.client.util.interact.InventoryUtils;
|
||||||
import de.com.baseband.client.util.interact.MotionUtil;
|
import de.com.baseband.client.util.interact.MotionUtil;
|
||||||
import de.tudbut.tools.Lock;
|
import de.tudbut.tools.Lock;
|
||||||
import net.minecraft.client.entity.EntityPlayerSP;
|
import net.minecraft.client.entity.EntityPlayerSP;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.inventory.ClickType;
|
||||||
import net.minecraft.network.Packet;
|
import net.minecraft.network.Packet;
|
||||||
import net.minecraft.network.play.client.CPacketEntityAction;
|
import net.minecraft.network.play.client.CPacketEntityAction;
|
||||||
import net.minecraft.network.play.client.CPacketPlayer;
|
import net.minecraft.network.play.client.CPacketPlayer;
|
||||||
|
@ -28,6 +30,15 @@ public class ElytraFly extends Feature {
|
||||||
Packet,
|
Packet,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Config("Stop flying on disable")
|
||||||
|
@Description("Stops your elytra when you disable the module.")
|
||||||
|
@Marker(4)
|
||||||
|
public boolean stopOnDisable = false;
|
||||||
|
|
||||||
|
@Config("Stop with packet")
|
||||||
|
@Gate(4)
|
||||||
|
public boolean stopWithPacket = true;
|
||||||
|
|
||||||
@Config("Mixin (recommended)")
|
@Config("Mixin (recommended)")
|
||||||
@Description("Use the client's mixin for ElytraFly control, which is more accurate but can theoretically be broken by other clients.")
|
@Description("Use the client's mixin for ElytraFly control, which is more accurate but can theoretically be broken by other clients.")
|
||||||
@Marker(2)
|
@Marker(2)
|
||||||
|
@ -110,6 +121,16 @@ public class ElytraFly extends Feature {
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
init = false;
|
init = false;
|
||||||
|
if(stopOnDisable) {
|
||||||
|
if(stopWithPacket) {
|
||||||
|
mc.player.connection.sendPacket(new CPacketPlayer.Position(mc.player.posX, mc.player.posY, mc.player.posZ, true));
|
||||||
|
mc.player.connection.sendPacket(new CPacketEntityAction(mc.player, CPacketEntityAction.Action.START_FALL_FLYING));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
InventoryUtils.clickSlot(6, ClickType.PICKUP, 0);
|
||||||
|
InventoryUtils.clickSlot(6, ClickType.PICKUP, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
1
Website
1
Website
|
@ -1 +0,0 @@
|
||||||
Subproject commit a9a51cea763298f0225594416c832252a821830f
|
|
Loading…
Add table
Reference in a new issue