mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-09 07:15:11 -04:00
added middle mouse button pasting
This commit is contained in:
parent
41c1f40377
commit
88a65bd590
@ -61,6 +61,12 @@ class Screen(val tileEntity: tileentity.Screen) extends MCGuiScreen {
|
||||
}
|
||||
}
|
||||
|
||||
protected override def mouseClicked(x: Int, y: Int, button: Int) {
|
||||
super.mouseClicked(x, y, button)
|
||||
if (button == 2)
|
||||
PacketSender.sendClipboard(tileEntity, MCGuiScreen.getClipboardString)
|
||||
}
|
||||
|
||||
override def initGui() = {
|
||||
super.initGui()
|
||||
MonospaceFontRenderer.init(mc.renderEngine)
|
||||
|
Loading…
x
Reference in New Issue
Block a user