mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
fixes computers spamming fingers are too big warning. also fixes exploit when using programs w/ fingers that are too big. (#72698)
Fixes #72153 🆑 ShizCalev fix: You'll no longer constantly be spammed with messages if your fingers are too big to interact with a computer's keyboard. fix: You can no longer interact with programs that were previously opened on a computer if your fingers are too big to use the keyboard. fix: You can now look at computer screens even if your fingers are too big to use the keyboard. /🆑
This commit is contained in:
@@ -218,6 +218,12 @@
|
||||
if(.)
|
||||
return
|
||||
|
||||
if(ishuman(usr) && !computer.allow_chunky) //in /obj/item/modular_computer/ui_act() too
|
||||
var/mob/living/carbon/human/human_user = usr
|
||||
if(human_user.check_chunky_fingers())
|
||||
computer.balloon_alert(human_user, "fingers are too big!")
|
||||
return TRUE
|
||||
|
||||
if(computer)
|
||||
switch(action)
|
||||
if("PC_exit")
|
||||
|
||||
Reference in New Issue
Block a user