From 339369bc635c1eab30d19bafa6160eb03ac0ea90 Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Mon, 30 Nov 2015 14:37:52 -0600 Subject: [PATCH] Remove calls to a private NanoUI proc from Chemistry-Machinery Also mark procs as private (because they should have been private the whole time). Get off my lawn! --- code/modules/nano/subsystem.dm | 10 +++++----- code/modules/reagents/Chemistry-Machinery.dm | 9 --------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/code/modules/nano/subsystem.dm b/code/modules/nano/subsystem.dm index 9230d8d71d8..2d969d94bd6 100644 --- a/code/modules/nano/subsystem.dm +++ b/code/modules/nano/subsystem.dm @@ -40,7 +40,7 @@ else return null // We couldn't find a UI. /** - * public + * private * * Get a open NanoUI given a user, src_object, and ui_key. * @@ -64,7 +64,7 @@ return null // Couldn't find a UI! /** - * public + * private * * Update all NanoUIs attached to src_object. * @@ -86,7 +86,7 @@ return update_count /** - * public + * private * * Close all NanoUIs attached to src_object. * @@ -108,7 +108,7 @@ return close_count /** - * public + * private * * Update all NanoUIs belonging to a user. * @@ -130,7 +130,7 @@ return update_count /** - * public + * private * * Close all NanoUIs belonging to a user. * diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm index 68e0ee4e105..e8a1946f595 100644 --- a/code/modules/reagents/Chemistry-Machinery.dm +++ b/code/modules/reagents/Chemistry-Machinery.dm @@ -29,7 +29,6 @@ energy = min(energy + addenergy, max_energy) if(energy != oldenergy) use_power(1500) // This thing uses up alot of power (this is still low as shit for creating reagents from thin air) - SSnano.update_uis(src) // update all UIs attached to src /obj/machinery/chem_dispenser/power_change() if(powered()) @@ -37,7 +36,6 @@ else spawn(rand(0, 15)) stat |= NOPOWER - SSnano.update_uis(src) // update all UIs attached to src /obj/machinery/chem_dispenser/process() @@ -146,7 +144,6 @@ src.beaker = B B.loc = src user << "You add the beaker to the machine." - SSnano.update_uis(src) // update all UIs attached to src if(!icon_beaker) icon_beaker = image('icons/obj/chemical.dmi', src, "disp_beaker") //randomize beaker overlay position. @@ -1413,16 +1410,12 @@ beaker.reagents.handle_reactions() state_change = 1 - if(state_change) - SSnano.update_uis(src) - /obj/machinery/chem_heater/proc/eject_beaker() if(beaker) beaker.loc = get_turf(src) beaker.reagents.handle_reactions() beaker = null icon_state = "mixer0b" - SSnano.update_uis(src) /obj/machinery/chem_heater/power_change() if(powered()) @@ -1430,7 +1423,6 @@ else spawn(rand(0, 15)) stat |= NOPOWER - SSnano.update_uis(src) /obj/machinery/chem_heater/attackby(obj/item/I, mob/user, params) if(isrobot(user)) @@ -1446,7 +1438,6 @@ I.loc = src user << "You add the beaker to the machine." icon_state = "mixer1b" - SSnano.update_uis(src) if(default_deconstruction_screwdriver(user, "mixer0b", "mixer0b", I)) return