mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-22 11:53:29 +01:00
parent
96216fd6d5
commit
abdf2c6b12
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
package de.ellpeck.prettypipes.terminal.containers;
|
||||
|
||||
import com.mojang.blaze3d.platform.InputConstants;
|
||||
import com.mojang.blaze3d.vertex.PoseStack;
|
||||
import de.ellpeck.prettypipes.PrettyPipes;
|
||||
import de.ellpeck.prettypipes.packets.PacketButton;
|
||||
|
@ -25,7 +26,8 @@ public class CraftingTerminalGui extends ItemTerminalGui {
|
|||
super.init();
|
||||
this.requestButton = this.addRenderableWidget(new Button(this.leftPos + 8, this.topPos + 100, 50, 20, new TranslatableComponent("info." + PrettyPipes.ID + ".request"), button -> {
|
||||
var amount = requestModifier();
|
||||
var force = hasAltDown() ? 1 : 0;
|
||||
// also allow holding backspace instead of alt for people whose alt key is inaccessible (linux?)
|
||||
var force = hasAltDown() || InputConstants.isKeyDown(this.minecraft.getWindow().getWindow(), 259) ? 1 : 0;
|
||||
PacketHandler.sendToServer(new PacketButton(this.menu.tile.getBlockPos(), PacketButton.ButtonResult.CRAFT_TERMINAL_REQUEST, amount, force));
|
||||
}));
|
||||
this.tick();
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
"info.prettypipes.limit_to_max_off": "Don't limit to one stack",
|
||||
"info.prettypipes.request": "Request",
|
||||
"info.prettypipes.not_found": "%s not found",
|
||||
"info.prettypipes.hold_alt": "Hold Alt to request anyway",
|
||||
"info.prettypipes.hold_alt": "Hold Alt or Backspace to request anyway",
|
||||
"info.prettypipes.sending": "Sending %s %s",
|
||||
"info.prettypipes.sending_ingredients": "Sending %s sets of ingredients",
|
||||
"info.prettypipes.order": "Order by %s",
|
||||
|
|
Loading…
Reference in a new issue