mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Another bunch of fixes for TGUI inputs (I'll be cursed...) (#25009)
* Oh god, oh fuck, WHY DIDN'T I USE isnull()??? * More correct checks * That's all * That's all x2 * Flavor fix
This commit is contained in:
@@ -293,7 +293,7 @@
|
||||
var/min = 0
|
||||
var/max = get_amount()
|
||||
var/stackmaterial = tgui_input_number(user, "How many sheets do you wish to take out of this stack? (Max: [max])", "Stack Split", max_value = max)
|
||||
if(stackmaterial == null || stackmaterial <= min || stackmaterial > get_amount())
|
||||
if(isnull(stackmaterial) || stackmaterial <= min || stackmaterial > get_amount())
|
||||
return
|
||||
if(!Adjacent(user, 1))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user