Make privileged SwitchBlock(World Switch) can't pickup (#9557)

This commit is contained in:
SITUVNgcd
2024-02-16 09:52:31 -05:00
committed by GitHub
parent b27ed03842
commit e6dd6cb44d
@@ -42,6 +42,11 @@ public class SwitchBlock extends Block{
if(privileged) return; if(privileged) return;
super.damage(damage); super.damage(damage);
} }
@Override
public boolean canPickup(){
return !privileged;
}
@Override @Override
public boolean collide(Bullet other){ public boolean collide(Bullet other){