Skip to content

Commit

Permalink
teleport bad
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeKuwait committed Aug 25, 2023
1 parent bab1225 commit 925d711
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/game/objects/items/storage/pouch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,9 @@
update_icon()

/obj/item/storage/pouch/pressurized_reagent_canister/afterattack(obj/target, mob/user, flag) //refuel at fueltanks & chem dispensers.
if(get_dist(user,target) > 1)
return ..()

if(!inner)
to_chat(user, SPAN_WARNING("[src] has no internal container!"))
return ..()
Expand All @@ -925,8 +928,7 @@
if(!istype(target, /obj/structure/reagent_dispensers/fueltank))
return ..()

if(get_dist(user,target) > 1)
return ..()


var/obj/O = target
if(!O.reagents || O.reagents.reagent_list.len < 1)
Expand Down

0 comments on commit 925d711

Please sign in to comment.