mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-09 15:05:38 +01:00
Merge pull request #9589 from Ghommie/Ghommie-cit259
Porting GetComponent macros removal, and few other updates.
This commit is contained in:
@@ -277,7 +277,7 @@
|
||||
/obj/machinery/disposal/bin/attackby(obj/item/I, mob/user, params)
|
||||
if(istype(I, /obj/item/storage/bag/trash)) //Not doing component overrides because this is a specific type.
|
||||
var/obj/item/storage/bag/trash/T = I
|
||||
GET_COMPONENT_FROM(STR, /datum/component/storage, T)
|
||||
var/datum/component/storage/STR = T.GetComponent(/datum/component/storage)
|
||||
to_chat(user, "<span class='warning'>You empty the bag.</span>")
|
||||
for(var/obj/item/O in T.contents)
|
||||
STR.remove_from_storage(O,src)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
pipename = initial(pipe_type.name)
|
||||
|
||||
if(flip)
|
||||
GET_COMPONENT(rotcomp,/datum/component/simple_rotation)
|
||||
var/datum/component/simple_rotation/rotcomp = GetComponent(/datum/component/simple_rotation)
|
||||
rotcomp.BaseRot(null,ROTATION_FLIP)
|
||||
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user