From 1fb778724329782bb5616da032742dce4dbea131 Mon Sep 17 00:00:00 2001 From: Jacob1 Date: Thu, 24 May 2012 14:07:31 -0400 Subject: [PATCH] VOID & PVOD can be set to only eat/not eat certain things --- src/powder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index a1187b1a6..700a6d5e0 100644 --- a/src/powder.c +++ b/src/powder.c @@ -344,7 +344,8 @@ int try_move(int i, int x, int y, int nx, int ny) } if ((r&0xFF)==PT_VOID || (r&0xFF)==PT_PVOD) //this is where void eats particles { - kill_part(i); + if(!parts[r>>8].ctype || (parts[r>>8].ctype==parts[i].type)!=(parts[r>>8].tmp&1)) + kill_part(i); return 0; } if ((r&0xFF)==PT_BHOL || (r&0xFF)==PT_NBHL) //this is where blackhole eats particles