From 51e7c037c3297cad89e3cd507a5384d60df43eb5 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 2 Aug 2015 21:25:31 +0200 Subject: [PATCH] Added grave button texture and reduced lag when vacuuming graves - Fixed item disappearance when retrieved while reducing amount of tests and drops when vacuuming - Added grave button texture --- mods/pclasses/inventory.lua | 2 +- mods/pclasses/textures/pclasses_grave_button.png | Bin 0 -> 241 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 mods/pclasses/textures/pclasses_grave_button.png diff --git a/mods/pclasses/inventory.lua b/mods/pclasses/inventory.lua index bcab7d28..8d38727b 100755 --- a/mods/pclasses/inventory.lua +++ b/mods/pclasses/inventory.lua @@ -58,7 +58,7 @@ function pclasses.api.vacuum_graveyard(player) for i = 1,7*8 do local stack = grave_inv:get_stack("graveyard", i) - if pclasses.api.util.can_have_item(pname, stack:get_name()) then + if pclasses.data.reserved_items[stack:get_name()] and pclasses.api.util.can_have_item(pname, stack:get_name()) then grave_inv:set_stack("graveyard", i, nil) player_inv:set_stack("graveyard", i, nil) if player_inv:room_for_item("main", stack) then diff --git a/mods/pclasses/textures/pclasses_grave_button.png b/mods/pclasses/textures/pclasses_grave_button.png new file mode 100644 index 0000000000000000000000000000000000000000..0da8523a58c6bca89de5c4ba9be79e5ade1b1b28 GIT binary patch literal 241 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmP~2a~Xb_^RCYxJWmwlbo-pvm<6h`gyq$=Z&k94?bpHbf|%I zK6k=8hjQMNdIz3MsnwiwE@M5Zr(h-%A))otz}5e8K(DK=va{;_`mUg)771ooHiN)f d;%xUA7*=)3DSs?pEDyAm!PC{xWt~$(69AGXO(g&T literal 0 HcmV?d00001