mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Merge pull request #2026 from clusterfack/Mommi-APC
Fix for long-distance cell removal
This commit is contained in:
@@ -602,7 +602,7 @@
|
||||
if(!isobserver(user))
|
||||
src.add_fingerprint(user)
|
||||
if(usr == user && opened)
|
||||
if(cell)
|
||||
if(cell && get_dist(src,user)<=1)
|
||||
if(issilicon(user) && !isMoMMI(user)) // MoMMIs can hold one item in their tool slot.
|
||||
cell.loc=src.loc // Drop it, whoops.
|
||||
else
|
||||
@@ -1298,4 +1298,4 @@ obj/machinery/power/apc/proc/autoset(var/val, var/on)
|
||||
else
|
||||
return 0
|
||||
|
||||
#undef APC_UPDATE_ICON_COOLDOWN
|
||||
#undef APC_UPDATE_ICON_COOLDOWN
|
||||
|
||||
4
html/changelogs/Clusterfack_2026.yml
Normal file
4
html/changelogs/Clusterfack_2026.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
author: Clusterfack
|
||||
delete-after: true
|
||||
changes:
|
||||
- bugfix: Added a range check for silicons trying to remove APC cells, cannot be done from anywhere in view now
|
||||
Reference in New Issue
Block a user