fix for slow servers
This commit is contained in:
@@ -7,7 +7,7 @@ mod_name = AutoTrade
|
|||||||
author = sebseb7
|
author = sebseb7
|
||||||
mod_file_name = autotrade-fabric
|
mod_file_name = autotrade-fabric
|
||||||
|
|
||||||
mod_version = 0.0.6
|
mod_version = 0.0.7
|
||||||
|
|
||||||
malilib_version = 0.18.0
|
malilib_version = 0.18.0
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ minecraft_version_out = 1.20.4
|
|||||||
minecraft_version = 1.20.4
|
minecraft_version = 1.20.4
|
||||||
mappings_version = 1.20.4+build.1
|
mappings_version = 1.20.4+build.1
|
||||||
fabric_loader_version = 0.15.1
|
fabric_loader_version = 0.15.1
|
||||||
mod_menu_version = 9.0.0-pre.1
|
mod_menu_version = 9.0.0
|
||||||
|
|||||||
@@ -332,19 +332,15 @@ public class KeybindCallbacks implements IHotkeyCallback, IClientTickHandler {
|
|||||||
inputInRange = true;
|
inputInRange = true;
|
||||||
ActionResult result = mc.interactionManager.interactBlock(mc.player, Hand.MAIN_HAND,
|
ActionResult result = mc.interactionManager.interactBlock(mc.player, Hand.MAIN_HAND,
|
||||||
new BlockHitResult(input.toCenterPos(), Direction.UP, input, false));
|
new BlockHitResult(input.toCenterPos(), Direction.UP, input, false));
|
||||||
if (result.isAccepted()) {
|
inputOpened = true;
|
||||||
inputOpened = true;
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if ((output.toCenterPos().distanceTo(mc.player.getPos()) < 4) && (outputInRange == false)) {
|
if ((output.toCenterPos().distanceTo(mc.player.getPos()) < 4) && (outputInRange == false)) {
|
||||||
outputInRange = true;
|
outputInRange = true;
|
||||||
ActionResult result = mc.interactionManager.interactBlock(mc.player, Hand.MAIN_HAND,
|
ActionResult result = mc.interactionManager.interactBlock(mc.player, Hand.MAIN_HAND,
|
||||||
new BlockHitResult(output.toCenterPos(), Direction.UP, output, false));
|
new BlockHitResult(output.toCenterPos(), Direction.UP, output, false));
|
||||||
if (result.isAccepted()) {
|
outputOpened = true;
|
||||||
outputOpened = true;
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input.toCenterPos().distanceTo(mc.player.getPos()) > 5) {
|
if (input.toCenterPos().distanceTo(mc.player.getPos()) > 5) {
|
||||||
|
|||||||
Reference in New Issue
Block a user